Skip to content

better way to set img src file for an avatar? #878

Answered by NickleDave
solarslurpi asked this question in Q&A
Discussion options

You must be logged in to vote

🤔 I could be wrong but I think the secret sauce is enabling the myst extension html_image like so:
https://github.com/executablebooks/sphinx-design/blob/fd7912f5da5f681daee17bbc7a6bcee117f006a8/docs/conf.py#L56

If this is the project you're working on, then I think you don't have it enabled, right?
https://github.com/solarslurpi/GrowBuddy/blob/1734c1b870f6ebd121df046461ae6991d8adb60e/docs/conf.py#L41

See https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#images for more info on what's going on here

edit: adding context from that part of the myst parser docs:

The final option is directly using HTML, which is also parsed by MyST. This is usually a bad option, because the HTM…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@solarslurpi
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@solarslurpi
Comment options

@NickleDave
Comment options

@solarslurpi
Comment options

Answer selected by solarslurpi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants