Skip to content

Do not process links within code blocks #3

Open
@dubinsky

Description

@dubinsky

Plugin detects and converts to HTML all links that math a regular expression, ignoring boundaries of code blocks.

This makes it difficult to quote a link in such a block (e.g., [[TODO]]) and have the quote display as it should, without being turned into an HTML <a> element. The only work-around I found is to insert an invisible Unicode zero-width space character between the first and the second opening square bracket. If this is the right way to "escape" a wiki-link, maybe it should be documented...

Of course, it would be much cleaner if the plugin did not process the code blocks at all ;)

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions