Manually written HTML tags will not be output by Copy AS Simple HTML

バグ報告

Hello,

Right now, I’m writing HTML tags directly in the md document that don’t exist in markdown.

I want to export this document, but when I use As HTML and Copy As HTML, the tags I wrote (details~summary) come out properly, but when I use Copy As Simple HTML, the HTML tags I wrote directly (details~summary) don’t come out in the HTML document (clipboard).

There are no error messages in the console.

Is this a specification to make it simple?

利用環境

  • Platform: Windows
  • Platform version: 11 Pro 23H2
  • App Version: 5.8.1

再現方法

## title

<details>
  <summary>

### sub title
    
  </summary>

#### item1

12345
  
#### item2

* AAA

* BBB
  
</details>

File - Export - Copy As Simple HTML

<h2>title</h2>
<h3>sub title</h3>
<h4>item1</h4>
<p>12345</p>
<h4>item2</h4>
<ul>
  <li>
    <p>AAA</p>
  </li>
  <li>
    <p>BBB</p>
  </li>
</ul>

console - Elements

<details line-start="3" line-end="20" open="">
  <summary line-start="4" line-end="8">
<h3 line-start="6" line-end="6" id="sub-title">sub title</h3>
  </summary>
<h4 line-start="10" line-end="10" id="item1">item1</h4>
<p line-start="12" line-end="12">12345</p>
<h4 line-start="14" line-end="14" id="item2">item2</h4>
<ul line-start="16" line-end="18">
<li line-start="16" line-end="16">
<p line-start="16" line-end="16">AAA</p>
</li>
<li line-start="18" line-end="18">
<p line-start="18" line-end="18">BBB</p>
</li>
</ul>
</details>

Related to this, the edit window also seems to behave oddly.
If you use markdown syntax between directly embedded HTML tags (<details> ~ </details>), it doesn’t show up in the edit window.
Copy the code from your initial post and paste it into the edit window and try to reproduce the issue.
For example, writing ### between </details> and <details> works.

Hi @fuyuton ,

Thanks for the question.
Copy as Simple HTML does not allow raw HTML at the moment.
But I think it’s ok to allow it since you can assume that it’s not dangerous.
I will try enabling it in the next release.

That is intended. Raw HTML code is not allowed when converting from HTML to Markdown for security reasons.

Thank you for your reply.
I’ll wait for the next release.