Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested within link - ignored #1

Open
flywire opened this issue Jun 28, 2020 · 3 comments
Open

Nested within link - ignored #1

flywire opened this issue Jun 28, 2020 · 3 comments

Comments

@flywire
Copy link
Owner

flywire commented Jun 28, 2020

The following URL is ignored:

[![Alt text](/path/to/image.png "This is the title of the image.")](URL)

Expected:

<figure>
<a href="URL">
<img alt="Alt text" src="/path/to/image.png" title="This is the title of the image."/>
</a>
<figcaption><span>Figure 1:</span> This is the title of the image.</figcaption>
</figure>

The link would include the image but not the caption.

The alt tag needs more consideration.

@Ptrph
Copy link

Ptrph commented Aug 24, 2020

I would love to have this working properly!

@flywire
Copy link
Owner Author

flywire commented Aug 24, 2020

It is fixed in the ContentHack branch but unfortunately adding new content types (Table, Other) broke config functionality and I'm still fixing that. That branch could be run but any config would need to be changed in the code which is pretty trivial. email me if you want support implementing this hack.

@Ptrph
Copy link

Ptrph commented Sep 1, 2020

Thanks for your reply. I’m still testing some setups and playing around with MkDocs and Python-Markdown. As I’m not a developer I try to keep it as simple as possible for the moment. I can wait a bit to see before testing the ContentHack branch. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants