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>
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.
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.
In inkdrop, when you write a bulleted or numbered list (outside of HTML tags), auto-completion works so that the next line will be the same.
However, when I tried to write a bulleted or numbered list inside an HTML tag, auto-completion did not work.
Also, I don’t know if this was the case in previous versions, but in 5.9.0beta2, if you used a numbered list outside of an HTML tag, the numbers were incremented and displayed in the editor.
(I installed the beta version over the previous version, so I can’t compare it right away. Sorry.)
If you want to use an MD heading tag within an HTML summary tag, press Enter after <summary> and type ### subtitle, and the MD tag will appear in VIEW as is, without any conversion.
The <details> and <summary> tags are treated as special in Markdown.
By design, the content of HTML tags is not parsed as Markdown:
<p>
- list 1
- list 2
</p>
Yields:
- list 1
- list 2
On the other hand, the content of <details> is parsed as Markdown:
<details>
<summary>Summary</summary>
- list 1
- list 2
</details>
Yields:
Summary
list 1
list 2
Therefore, the editor basically expects the text inside an HTML tag to be HTML.
That’s why the continue-list doesn’t work here.
CodeMirror can’t know if it’s inside a details tag, unfortunately.