Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

预览模式复制到微信公众号支持超过两级的列表 #11276

Open
Achuan-2 opened this issue May 6, 2024 · 1 comment
Open

预览模式复制到微信公众号支持超过两级的列表 #11276

Achuan-2 opened this issue May 6, 2024 · 1 comment

Comments

@Achuan-2
Copy link
Member

Achuan-2 commented May 6, 2024

In what scenarios do you need this feature?

预览模式复制到微信公众号,列表最多正常渲染两级
思源笔记的预览模式
Clip_2024-05-06_21-56-00
粘贴微信公众号

Clip_2024-05-06_21-55-53

Describe the optimal solution

目前的渲染是,次级的列表会包含在<li>中,而微信则是需要次级列表和<li>同级。
目前复制的多级列表html结构为:

<ul>
	<li>
		<ul>
			<li>
				<ul></ul>			
			</li>
		</ul>
	</li>
</ul>

微信公众号需要正常渲染的预期如下:

<ul>
	<li></li>
	<ul>
		<li></li>
		<ul>
               </ul>
	</ul>
</ul>

Describe the candidate solution

Other information

No response

@Achuan-2 Achuan-2 changed the title 预览模式复制到微信支持超过三级的列表 预览模式复制到微信公众号支持超过三级的列表 May 6, 2024
@Achuan-2 Achuan-2 changed the title 预览模式复制到微信公众号支持超过三级的列表 预览模式复制到微信公众号支持超过两级的列表 May 6, 2024
@Achuan-2
Copy link
Member Author

可参考代码:doocs/md@b3a52ba

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant