Skip to content

Markdown-representable elements within other HTML tags sometimes shouldn't be converted into Markdown #180

@ybnd

Description

@ybnd

Most Markdown libraries that support inline HTML (maybe even all of them) disallow Markdown syntax within HTML elements.

When converting a WP export with <figure> elements around images we ended up getting ![]() Markdown images nested within them, which doesn't work with the editors we tried (VSCode, Obsidian).

This particular situation was easy to recover from with a search-replace afterwards, but there may be more tricky scenarios, and some that can't really be resolved consistently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions