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

Linebreaks break this feature #9

Open
martin-ueding opened this issue May 3, 2020 · 0 comments
Open

Linebreaks break this feature #9

martin-ueding opened this issue May 3, 2020 · 0 comments

Comments

@martin-ueding
Copy link

I use this extension with Nikola, and it is a great help. Thank you for that!

The thing that I noticed is that it skips figures which have a caption that is wrapped over multiple lines. I had this in my Markdown source:

![Partial map of China showing my two destinations. Wǔhàn is in the south,      
Běijīng is in the north.](map-china-for-title.png)

That just rendered as an image with an alt attribute. But once I changed this to one longer line, I got a <figure> tag.

![Partial map of China showing my two destinations. Wǔhàn is in the south, Běijīng is in the north.](map-china-for-title.png)

I haven't looked into the implementation, but I guess it uses regular expressions and does not include newlines in the patterns? Or it uses a parser but works with single lines only? I would appreciate if it would work with line wrapping as I have the habit to wrap everything to 80 columns.

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

1 participant