Skip to content

[BUG] Link creation does not take code blocks into account #317

@foxblock

Description

@foxblock

Problem:
Due to the way links are created using a regex replace, having any text inside a code block with the format [[what|ever]] will trigger it and replace that text with a link (which in turn will then be removed by Prism, leaving only the link text without the brackets behind).

Expected result:
Any text inside a code block or code area should just be left alone and not touched by any of the 11ty filters.

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