Giter VIP home page Giter VIP logo

Comments (4)

adinhodovic avatar adinhodovic commented on July 17, 2024 1

You can override the default width by using:

<:image:cool_image.png|width=1000>

If your image is 700px set the width to 700 and the image will be the full-width original image size. But you can't stretch images, setting it to 800 will be just as big as the original image.

You could set the width to 5000 for all images and it'll stretch to full size for all images (except if some exceed 5000px). Still can't grasp how to use the variable 'full' as it does not override opts['spec'] as width does. https://github.com/torchbox/wagtail-markdown/blob/master/wagtailmarkdown/mdx/linkers/image.py#L45

By default all images are up to 500px large. The height scales automatically as usual with HTML.

from wagtail-markdown.

fernandolins avatar fernandolins commented on July 17, 2024

Is there a way to customizing linkers image format?
Nowadays it accepts left, right and full format.

To RichText we can register custom image format. Can we do that to Markdown as well?

from wagtail-markdown.

zerolab avatar zerolab commented on July 17, 2024

@danihodovic with https://github.com/torchbox/wagtail-markdown/releases/tag/v0.10.0 you could use the inline image reference ![alt text][image:PK,class=full-width,filter=width-1000)

from wagtail-markdown.

danihodovic avatar danihodovic commented on July 17, 2024

Nice one @zerolab

from wagtail-markdown.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.