Skip to content

Tags directive replaced by anchor point inside code block #8114

@marmotton

Description

@marmotton

Context

No response

Bug description

In one of my pages, I have the following code block (it contains more text, this is a minimal example):

```
<!-- material/tags -->
```

It is then rendered as:

<div class="highlight"><pre><span></span><code>###### dernieres-modifications.md:103-125/name { #dernieres-modifications.md:103-125/slug }</code></pre></div>

I'm not sure if this behavior is wanted. In my case I'd like the text in the code block not to be modified.

Related links

Reproduction

9.6.9-tag-anchor-code-block.zip

Steps to reproduce

  1. Enable the tags plugin
  2. Write <!-- material/tags --> inside a code block

Browser

No response

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugnot feasibleIssue requests something impracticable

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions