Skip to content

[kramdown] images attributes on new line are ignored #119

Description

@zkamvar

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions