nhn / tui.editor

🍞📝 Markdown WYSIWYG Editor. GFM Standard + Chart & UML Extensible.
http://ui.toast.com/tui-editor
MIT License
16.94k stars 1.72k forks source link

summary tag being removed #1709

Open ats1999 opened 2 years ago

ats1999 commented 2 years ago

Describe the bug

I have customized rendering of markdown using customHTMLRenderer.

customHTMLRenderer.htmlBlock = {
    details(node){
        return [
                { type: 'html', content: node.childrenHTML }
            ];
    }
}

MD

<details>
  <summary>Epcot Center</summary>
  <p>Epcot is a theme park at Walt Disney World Resort featuring exciting attractions, international pavilions, award-winning fireworks and seasonal special events.</p>
</details>

Output HTML

<details>
  <p>Epcot is a theme park at Walt Disney World Resort featuring exciting attractions, international pavilions, award-winning fireworks and seasonal special events.</p>
</details>

summary tag is being removed

js87zz commented 2 years ago

@ats1999 Our incremental mark-down parsing now does not support this grammar properly. I think this feature should be developed by adding it as a separate plug-in later on. It's a little bit of a future story, but I want you to wait.

ats1999 commented 2 years ago

I'm waiting!