We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When processing images, a pattern like this is ignored by the parser so that the kramdown to pandoc conversion misses it:
tmp <- withr::local_tempfile() writeLines(c("![test image](https://example.com/img.jpg)", "{.image-with-shadow width='50%'}"), tmp) pegboard::Episode$new(tmp)$use_sandpaper()$show() #> --- #> ~ #> --- #> #> ![](https://example.com/img.jpg){alt='test image'} #> {.image-with-shadow width='50%'}
Created on 2023-04-18 with reprex v2.0.2
The text was updated successfully, but these errors were encountered:
Note: this still needs a bit of work because figure attributes on new lines are not allowed (afaict):
pandoc::pandoc_convert(text = "![a](link)\n{alt='b'}", to = "html") #> <p><img src="link" alt="a" /> {alt=‘b’}</p> pandoc::pandoc_convert(text = "![a](link){alt='b'}", to = "html") #> <figure> #> <img src="link" alt="b" /> #> <figcaption>a</figcaption> #> </figure>
Sorry, something went wrong.
No branches or pull requests
When processing images, a pattern like this is ignored by the parser so that the kramdown to pandoc conversion misses it:
Created on 2023-04-18 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: