Skip to content

<strong> Tag Doesn't Shows Properly in <pre> Block #6156

@DawnMagnet

Description

@DawnMagnet

Have you read the Contributing Guidelines on issues?

Prerequisites

Description

I Write a Test Case below

输入:a = "abcd", b = "cdabcdab"
输出:3
解释:a 重复叠加三遍后为 "abcdabcdabcd", 此时 b 是其子串。
<pre>
  <strong>输入:</strong>a = "abcd", b = "cdabcdab"
  <strong>输出:</strong>3
  <strong>解释:</strong>a 重复叠加三遍后为 "ab<strong>cdabcdab</strong>cd", 此时 b 是其子串。
</pre>

As we can see blow, Github shows correctly
but if this block appears in a docusaurus MarkDown file when build a website
it appears like blow
image

[object Object]a = "abcd", b = "cdabcdab"[object Object]3[object Object]a 重复叠加三遍后为 "ab[object Object]cd", 此时 b 是其子串。

which turns <strong> tag into [object Object]

Steps to reproduce

write a markdown file includes <strong> tag in a <pre> tag

<pre>
  <strong>输入:</strong>a = "abcd", b = "cdabcdab"
  <strong>输出:</strong>3
  <strong>解释:</strong>a 重复叠加三遍后为 "ab<strong>cdabcdab</strong>cd", 此时 b 是其子串。
</pre>

Expected behavior

Correct Content

Actual behavior

Incorrent

Your environment

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its execution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions