Skip to content

unwrapDisallowed still removes numbers from numeric list #921

Discussion options

You must be logged in to vote

Disabling constructs changed with the arrival of micromark https://github.com/micromark/micromark#case-turn-off-constructs

The list construct is named list https://github.com/micromark/micromark/blob/893a8d6b0e5c7a681a0faed3cd55cdbeafabe2d7/packages/micromark-core-commonmark/dev/lib/list.js#L24-L26
Applying a micromark extension in a remark plugin looks like https://github.com/remarkjs/remark-directive/blob/2cfea20ae7d29038cb91e01bb9731ffbc0a1d052/index.js#L16-L19

Put all that together you get something like https://codesandbox.io/s/disable-list-tokenizer-7poch

code example
import React from "react";
import Markdown from "react-markdown";
import remarkGfm from "remark-gfm";

const markdo…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@iliatapazukk
Comment options

Answer selected by iliatapazukk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants