diff --git a/README.md b/README.md index d6d59c7..0887914 100644 --- a/README.md +++ b/README.md @@ -503,6 +503,11 @@ operating systems. All image paths not starting with `http://` or `https://` are assumed to refer to local image files (files on your machine), and will result in errors if these files are not found. +Use the [attribute extension](https://python-markdown.github.io/extensions/attr_list/) +in markdown to alter the image size: +``` +![alt_text](image_file){: width="100px"} +``` ### LaTeX diff --git a/text2qti/markdown.py b/text2qti/markdown.py index abcdbb9..b8e0d0e 100644 --- a/text2qti/markdown.py +++ b/text2qti/markdown.py @@ -40,6 +40,7 @@ markdown.extensions.footnotes.makeExtension(), markdown.extensions.tables.makeExtension(), markdown.extensions.md_in_html.makeExtension(), + markdown.extensions.attr_list.makeExtension(), ] from markdown.inlinepatterns import ImageInlineProcessor, IMAGE_LINK_RE