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

How to disable ListItem (BulletList, OrderedList) #471

Open
pennya opened this issue Apr 8, 2024 · 1 comment
Open

How to disable ListItem (BulletList, OrderedList) #471

pennya opened this issue Apr 8, 2024 · 1 comment

Comments

@pennya
Copy link

pennya commented Apr 8, 2024

  • Markwon version: 4.3.0

I would like to know to disable ListItem.

I disabled the list items by referring to the tip area like below

TIP
MarkwonVisitor also allows overriding already registered nodes. For example, you can disable Heading Node rendering:
builder.on(Heading.class, null);

i tried like below.

builder.on(BulletList::class.java, null)
builder.on(OrderedList::class.java, null)
builder.on(ListItem::class.java, null)

original :

hello
1. xxx
2. ccc

expected :

hello
1. xxx
2. ccc

actual :

hello
xxxccc

Is there a way?
Thank you in advance.

@pennya
Copy link
Author

pennya commented Apr 16, 2024

i found solution like below

override fun configureParser(builder: Parser.Builder) {
    builder.enabledBlockTypes(Collections.emptySet())
}

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