How do you nest ordered lists with different symbols #698
Replies: 5 comments 11 replies
-
Create your own |
Beta Was this translation helpful? Give feedback.
-
How to implement a example plugins |
Beta Was this translation helpful? Give feedback.
-
Like this: attrs['label'] = String.fromCharCode(97+index) + '.' |
Beta Was this translation helpful? Give feedback.
-
How did you implement it? Can you provide the code |
Beta Was this translation helpful? Give feedback.
-
It's only about milkdown. Read import {
InsertHardbreak,
InsertHr,
InsertImage,
LiftListItem, // This should be your custom list-item
ModifyImage,
nodes,
SinkListItem,
SplitListItem,
TurnIntoCodeFence,
TurnIntoHeading,
TurnIntoText,
WrapInBlockquote,
WrapInBulletList,
WrapInOrderedList,
} from './node';
import { commonmarkPlugins } from './plugin';
// ...
export const commonmarkNodes = AtomList.create([...nodes, ...marks]);
export { commonmarkPlugins };
export const commonmark = AtomList.create([...commonmarkPlugins, ...commonmarkNodes]); |
Beta Was this translation helpful? Give feedback.
-
How do you nest ordered lists with different symbols
eg
a.apple-1-1
b.apple-1-2
c.apple-1-3
i.apple2-1
ii,apple2-2
iii.apple2-3
1.apple3-1
2.apple3-2
3.apple3-3
Beta Was this translation helpful? Give feedback.
All reactions