Skip to content

装飾タグ内でmarkdown, 数式,アイコンの展開がされない #9546

@y5000x

Description

@y5000x

Environment

Host

item version
OS Windows 11
GROWI 7.0.21
node.js 20.18.0
npm 10.8.2
yarn 1.22.22
Using Docker yes
Using growi-docker-compose yes

(Accessing https://{GROWI_HOST}/admin helps you to fill in above versions)

Client

item version
OS Windows 11
browser Firefox 134.0

How to reproduce? (再現手順)

Wikiページに以下のコードで再現可能

OKの場合

<div class="alert alert-primary" role="alert">

$ ax^5 + bx^4 + cx^3 + dx^2 + ex + f $
- :wrench:OK:wrench: 
- あああ
</div>

NGの場合

<div class="alert alert-primary" role="alert">
$ ax^5 + bx^4 + cx^3 + dx^2 + ex + f $
- :wrench:NG:wrench: 
- あああ
</div>

<a class="btn btn-primary text-white" data-bs-toggle="collapse" href="#collapse-1">
  コンテンツを表示する
</a>
<div class="collapse" id="collapse-1">
  <div class="card card-body">
$ ax^5 + bx^4 + cx^3 + dx^2 + ex + f $
- :wrench:NG:wrench: 
- あああ
  </div>
</div>

What happens? (症状)

  • タグのinnerHTML部分の開始行に正規表現 ^[\s\t]*$ で示せる行を与えると正常にmarkdownが展開されるが、それ以外は展開されずテキスト表示となる

What is the expected result? (期待される動作)

  • 正常にmarkdownが変換されること

Note

  • issue #235と同じ現象?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions