You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functionconvertListToWechat(){// Select all <ul> and <ol> elementsconstlists=document.querySelectorAll('ul, ol');lists.forEach(list=>{// Get all <li> children of the current listconstitems=Array.from(list.children);items.forEach(item=>{// Check if the <li> has a nested <ul> or <ol> as its direct childconstnestedList=item.querySelector('ul, ol');if(nestedList){// Move the nested list to be a sibling of the current <li>item.parentNode.insertBefore(nestedList,item.nextSibling);}});});}// Run the function to adjust the list structureconvertListToWechat();
Activity
[-]预览模式复制到微信支持超过三级的列表[/-][+]预览模式复制到微信公众号支持超过三级的列表[/+][-]预览模式复制到微信公众号支持超过三级的列表[/-][+]预览模式复制到微信公众号支持超过两级的列表[/+]Achuan-2 commentedon May 13, 2024
可参考代码:doocs/md@b3a52ba
Achuan-2 commentedon Nov 14, 2024
https://ld246.com/article/1731553411638
处理代码
多级列表举例
多巴胺
基本概念
生理功能
奖励与动机
运动控制
情绪与认知
合成与代谢
合成
代谢
临床相关性
帕金森病
精神疾病
成瘾
修改前,发布到微信公众号的样式


修改后,发到公众号的样式
TCOTC commentedon Dec 21, 2024
相关反馈:
Achuan-2 commentedon Dec 21, 2024
另外提示下,微信公众号部分用户被灰度更新了,新版的代码块和引述块思源笔记直接粘贴,格式会丢失,要切换旧版,需要链接末尾添加&mpeditor=0
Vanessa219 commentedon Apr 21, 2025
如果没有被灰度更新的要怎么才能测试代码块和引述呢?
🎨 #11276
Achuan-2 commentedon Apr 21, 2025
代码块目前没问题了
引述块格式也没问题,目前主要的问题是新版微信编辑器限制引述块字数不超过300字
可以试试编辑器末尾添加&mpeditor=1(不确定能不能进入新版编辑器)
Achuan-2 commentedon Apr 21, 2025
@Vanessa219
既然改进了列表,有空的时候也把公式也改进了吧,我之前已经给了方案了
#12571
Vanessa219 commentedon Apr 22, 2025
不知道行不行,都没有问题。
[-]预览模式复制到微信公众号支持超过两级的列表[/-][+]Preview mode copy to WeChat MP supports lists with more than two levels[/+]