含有代码块就会乱

BUG反馈 · 282 次浏览
ttChen 创建于 2023-02-17 12:03

含有代码块就会乱


tkk 2023-02-20 10:44 :

有图么,我试了一下应该是代码块有个样式,让他们放到html的注释里去了。然后这个样式我没有跟进,这样如果包含代码块的话,代码的复制和写入就会变成普通文本

tkk 最后更新于 2023-02-20 10:45
ttChen 2023-02-20 11:38 :

https://www.yuque.com/chentaotao-cf9fr/ema0gb/pox90d7nlg79f6sy?singleDoc# 《获取路径》 密码:stex

上面是网址,复制获取HTML后,再粘贴,代码块就乱了。


ttChen 最后更新于 2023-02-20 11:40
ttChen 2023-02-20 11:41 :

复制后HTML代码是这样的:

<!--text_ne_inode_%7B%22type%22%3A%22fragment%22%2C%22name%22%3A%22%23fragment%22%2C%22children%22%3A%5B%7B%22type%22%3A%22element%22%2C%22id%22%3A%22OQXyV%22%2C%22name%22%3A%22h2%22%2C%22attrs%22%3A%7B%7D%2C%22children%22%3A%5B%7B%22type%22%3A%22text%22%2C%22id%22%3A%22u0f81ae83%22%2C%22name%22%3A%22%23text%22%2C%22attrs%22%3A%7B%7D%2C%22data%22%3A%22%E4%B8%80%E3%80%81%E8%8E%B7%E5%8F%96Zotero%E7%9B%B8%E5%85%B3%E8%B7%AF%E5%BE%84%22%7D%5D%7D%2C%7B%22type%22%3A%22element%22%2C%22id%22%3A%22lZIlr%22%2C%22name%22%3A%22h3%22%2C%22attrs%22%3A%7B%7D%2C%22children%22%3A%5B%7B%22type%22%3A%22text%22%2C%22id%22%3A%22udce1d1da%22%2C%22name%22%3A%22%23text%22%2C%22attrs%22%3A%7B%7D%2C%22data%22%3A%221.1%20%E8%8E%B7%E5%8F%96Zotero%E6%95%B0%E6%8D%AE%E6%96%87%E4%BB%B6%E5%A4%B9%20%20%20%22%7D%5D%7D%2C%7B%22type%22%3A%22element%22%2C%22id%22%3A%22ueab70cf8%22%2C%22name%22%3A%22hole%22%2C%22attrs%22%3A%7B%7D%2C%22children%22%3A%5B%7B%22type%22%3A%22card%22%2C%22id%22%3A%22PQNCL%22%2C%22name%22%3A%22codeblock%22%2C%22attrs%22%3A%7B%22value%22%3A%7B%22mode%22%3A%22javascript%22%2C%22code%22%3A%22Zotero.DataDirectory.dir%22%2C%22autoWrap%22%3Afalse%2C%22lineNumbers%22%3Atrue%2C%22heightLimit%22%3Atrue%2C%22collapsed%22%3Afalse%2C%22hideToolbar%22%3Afalse%2C%22name%22%3A%22%22%2C%22tabSize%22%3Anull%2C%22indentWithTab%22%3Afalse%2C%22lightLines%22%3A%5B%5D%2C%22foldLines%22%3A%5B%5D%2C%22theme%22%3A%22Github%20Light%22%2C%22__spacing%22%3A%22both%22%7D%2C%22cardType%22%3A%22block%22%7D%2C%22cardType%22%3A%22block%22%7D%5D%7D%2C%7B%22type%22%3A%22element%22%2C%22id%22%3A%22YJn6D%22%2C%22name%22%3A%22h3%22%2C%22attrs%22%3A%7B%7D%2C%22children%22%3A%5B%7B%22type%22%3A%22text%22%2C%22id%22%3A%22ud13d31a3%22%2C%22name%22%3A%22%23text%22%2C%22attrs%22%3A%7B%7D%2C%22data%22%3A%221.2%20%E8%8E%B7%E5%8F%96Zotero%E9%BB%98%E8%AE%A4%E6%95%B0%E6%8D%AE%E6%96%87%E4%BB%B6%E5%A4%B9%22%7D%5D%7D%2C%7B%22type%22%3A%22element%22%2C%22id%22%3A%22u65e3a5d9%22%2C%22name%22%3A%22hole%22%2C%22attrs%22%3A%7B%7D%2C%22children%22%3A%5B%7B%22type%22%3A%22card%22%2C%22id%22%3A%22kPiC2%22%2C%22name%22%3A%22codeblock%22%2C%22attrs%22%3A%7B%22value%22%3A%7B%22mode%22%3A%22javascript%22%2C%22code%22%3A%22Zotero.DataDirectory.defaultDir%22%2C%22autoWrap%22%3Afalse%2C%22lineNumbers%22%3Atrue%2C%22heightLimit%22%3Atrue%2C%22collapsed%22%3Afalse%2C%22hideToolbar%22%3Afalse%2C%22name%22%3A%22%22%2C%22tabSize%22%3Anull%2C%22indentWithTab%22%3Afalse%2C%22lightLines%22%3A%5B%5D%2C%22foldLines%22%3A%5B%5D%2C%22theme%22%3A%22Github%20Light%22%2C%22__spacing%22%3A%22both%22%7D%2C%22cardType%22%3A%22block%22%7D%2C%22cardType%22%3A%22block%22%7D%5D%7D%2C%7B%22type%22%3A%22element%22%2C%22id%22%3A%22fELRc%22%2C%22name%22%3A%22h3%22%2C%22attrs%22%3A%7B%7D%2C%22children%22%3A%5B%7B%22type%22%3A%22text%22%2C%22id%22%3A%22u407752ad%22%2C%22name%22%3A%22%23text%22%2C%22attrs%22%3A%7B%7D%2C%22data%22%3A%221.3%20%E8%8E%B7%E5%8F%96%E6%95%B0%E6%8D%AE%E6%96%87%E4%BB%B6%E5%90%8D%E5%92%8C%E6%95%B0%E6%8D%AE%E8%B7%AF%E5%BE%84%22%7D%5D%7D%2C%7B%22type%22%3A%22element%22%2C%22id%22%3A%22uf30fdf56%22%2C%22name%22%3A%22hole%22%2C%22attrs%22%3A%7B%7D%2C%22children%22%3A%5B%7B%22type%22%3A%22card%22%2C%22id%22%3A%22jgvS0%22%2C%22name%22%3A%22codeblock%22%2C%22attrs%22%3A%7B%22value%22%3A%7B%22mode%22%3A%22javascript%22%2C%22code%22%3A%22Zotero.DataDirectory.getDatabaseFilename()%20%5CnZotero.DataDirectory.getDatabase()%22%2C%22autoWrap%22%3Afalse%2C%22lineNumbers%22%3Atrue%2C%22heightLimit%22%3Atrue%2C%22collapsed%22%3Afalse%2C%22hideToolbar%22%3Afalse%2C%22name%22%3A%22%22%2C%22tabSize%22%3Anull%2C%22indentWithTab%22%3Afalse%2C%22lightLines%22%3A%5B%5D%2C%22foldLines%22%3A%5B%5D%2C%22theme%22%3A%22Github%20Light%22%2C%22__spacing%22%3A%22both%22%7D%2C%22cardType%22%3A%22block%22%7D%2C%22cardType%22%3A%22block%22%7D%5D%7D%2C%7B%22type%22%3A%22element%22%2C%22id%22%3A%22u97c77adc%22%2C%22name%22%3A%22p%22%2C%22attrs%22%3A%7B%7D%2C%22children%22%3A%5B%7B%22type%22%3A%22text%22%2C%22id%22%3A%22u21414b04%22%2C%22name%22%3A%22%23text%22%2C%22attrs%22%3A%7B%7D%2C%22data%22%3A%22%22%7D%5D%7D%5D%2C%22attrs%22%3A%7B%7D%7D--><div class="lake-content" typography="classic"><h2 id="OQXyV" style="font-size: 24px; line-height: 32px; margin: 21px 0 5px 0"><span class="ne-text">一、获取Zotero相关路径</span></h2><h3 id="lZIlr" style="font-size: 20; line-height: 28px; margin: 16px 0 5px 0"><span class="ne-text">1.1 获取Zotero数据文件夹   </span></h3><pre data-language="javascript" id="PQNCL" class="ne-codeblock language-javascript" style="border: 1px solid #e8e8e8; border-radius: 2px; background: #f9f9f9; padding: 16px; font-size: 13px; color: #595959">Zotero.DataDirectory.dir</pre><h3 id="YJn6D" style="font-size: 20; line-height: 28px; margin: 16px 0 5px 0"><span class="ne-text">1.2 获取Zotero默认数据文件夹</span></h3><pre data-language="javascript" id="kPiC2" class="ne-codeblock language-javascript" style="border: 1px solid #e8e8e8; border-radius: 2px; background: #f9f9f9; padding: 16px; font-size: 13px; color: #595959">Zotero.DataDirectory.defaultDir</pre><h3 id="fELRc" style="font-size: 20; line-height: 28px; margin: 16px 0 5px 0"><span class="ne-text">1.3 获取数据文件名和数据路径</span></h3><pre data-language="javascript" id="jgvS0" class="ne-codeblock language-javascript" style="border: 1px solid #e8e8e8; border-radius: 2px; background: #f9f9f9; padding: 16px; font-size: 13px; color: #595959">Zotero.DataDirectory.getDatabaseFilename() 

Zotero.DataDirectory.getDatabase()</pre><p id="u97c77adc" class="ne-p" style="margin: 0; padding: 0; min-height: 24px"><span class="ne-text"></span></p></div>

回复内容
ttChen 2023-02-21 10:12
#1

用API给思源笔记标题编号实现了,语雀好像不支持。

标题编号 - 动作信息 - Quicker (getquicker.net)

回复主贴