请教一下 我想设置markdown元素ID怎么设置 #259
Closed
peterpu806-ctrl
started this conversation in
General
Replies: 3 comments 8 replies
-
|
headingNode没有去处理attrs,好奇为什么需要在这里加id,而不是直接用别的选择器的方式 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
因为我要通过Id锚点定位 |
Beta Was this translation helpful? Give feedback.
7 replies
-
|
可以用最新版本了 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
const parseOptions = {
preTransformTokens: (tokens: any[]) => {
// 标题计数器:h1-h5分别计数
const headingCounters = {
h1: 0,
h2: 0,
h3: 0,
h4: 0,
h5: 0
};
Beta Was this translation helpful? Give feedback.
All reactions