Skip to content

Commit

Permalink
Turn on attr_list
Browse files Browse the repository at this point in the history
Allows one to set attributes of generate html elements (like img)
  • Loading branch information
gordonwatts committed Mar 15, 2021
1 parent 12fa418 commit f10441e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions text2qti/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f10441e

Please sign in to comment.