Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML entities are not encoded when using plain text #36

Closed
svivian opened this issue Oct 8, 2020 · 1 comment
Closed

HTML entities are not encoded when using plain text #36

svivian opened this issue Oct 8, 2020 · 1 comment
Labels
duplicate This issue or pull request already exists
Milestone

Comments

@svivian
Copy link

svivian commented Oct 8, 2020

Using this Markdown code:

```text
<b>test</b>
```

The HTML is not encoded and I end up with a code block that just says "test", in bold. In other words this is the HTML output:

<pre class="language-text"><code class="language-text"><b>test</b></code></pre>

It should be this:

<pre class="language-text"><code class="language-text">&lt;b&gt;test&lt;/b&gt;</code></pre>

Using any other language (e.g. js) encodes the entities correctly. As does omitting a language (just using ```) but then you don't get the default highlighting (box colour etc).

@zachleat zachleat added the duplicate This issue or pull request already exists label Jun 28, 2022
@zachleat
Copy link
Member

Duplicate of #54 (comment) (some discussion and solutions over there, thank you!)

@zachleat zachleat added this to the 4.1.0 milestone Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants