Replies: 1 comment 2 replies
-
Hey! Importantly, why not use directives, inventing yet another syntax means your markdown can’t be ported, it‘s going to be a bad experience over the years! Or, something that exists, such as https://github.com/landakram/micromark-extension-wiki-link?
What about folks writing
Thanks for sharing so much in detail, but that’s a lot for me to wade through, to get your entire project into my head! You have four syntax extensions in your package. Which is the one with problems? All? My first guess is that you are not |
Beta Was this translation helpful? Give feedback.
-
Hi,
I recently put out a couple of remark plugins, but have a bug I haven't been able to wrap my head around.
In short, I am trying to get the target syntax ->
:attrtype::[[fname-a]]
to render properly when it appears after markdown lists, but the syntax should never render inside of markdown lists.This is occurring in my
micromark-extension-wikirefs
plugin. These are the failing tests whose test runner is here, full output you can checkout here, and full test suite descriptions are here.I think every single one of these failing tests stems from the fact that I'm not kicking out of markdown lists and I have not been able to figure out how to do this. I have tried a few things to kick out of lists preemptively, but to no avail.
Here are some short examples:
Both of these markdown snippets...:
...HTML behavior:
Any guidance in fixing these bugs would be much appreciated.
Note: I'm not sure if the lazy line discussion applies here. I also looked at this discussion, but still feel a tad lost.
Beta Was this translation helpful? Give feedback.
All reactions