-
Hi there, I looked through the documentation and some old discussion/issue where I found how to write a micromark extension to disable constructs with The Similarly, I also want to disable ordered lists, but not unordered lists, but the I can't find a way to do it, and I'm wondering if it's possible at all to do what I need. Thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey! How would what you want work? What would for example Why do you want this? Why do you want to come up with your own non-standard language while still carrying all the bagage of markdown? Why don’t you go with AsciiDoc, reStructuredText, Org-mode, or HTML? |
Beta Was this translation helpful? Give feedback.
-
Hey @wooorm, Thanks for getting back to me :)
That's a good question, which forced me to double-check our current implementation, and I realized that we don't actually have this distinction either, but from memory, I thought we did. I was wrong. For context, we are using marked in Typist to convert Markdown into HTML, and we are in the process of replacing it with the unified ecosystem. The goal is to refactor without breaking any existing functionality, and I'm trying to replicate what we have here with marked. But again, this discussion is now moot because disabling
Typist is a rich-text editor powered by Tiptap, and Tiptap allows you to disable pretty much any construct individually, so our serializers (Markdown to HTML and HTML to Markdown) should, ideally, support the same functionality in case someone configures the editor without support for a given construct. We do this because we had issues in the past where certain constructs were disabled in the editor (not bold or italic, that was just a basic example for my question that turned out to be a bad example), but not on the serializer, and some content was being eaten out. Anyway, I figured out everything I wanted to do, and the refactor didn't break any functionality. So it's all good. Thank you for your time. |
Beta Was this translation helpful? Give feedback.
Hey!
How would what you want work? What would for example
*a*, **b**, and ***c***
turn into? And can you show example input/output of lists?Why do you want this? Why do you want to come up with your own non-standard language while still carrying all the bagage of markdown? Why don’t you go with AsciiDoc, reStructuredText, Org-mode, or HTML?