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 customize parse similar to "[][]()" #640

Open
FirstJavaMaster opened this issue Oct 23, 2024 · 0 comments
Open

How to customize parse similar to "[][]()" #640

FirstJavaMaster opened this issue Oct 23, 2024 · 0 comments

Comments

@FirstJavaMaster
Copy link

FirstJavaMaster commented Oct 23, 2024

I have a markdown text that may contain content like "[abc][def](url)".
In fact, "[abc]" refers to some custom expressions, just think of it as the Text type. "[def](url)" is a real link.
In the AST by default Parser, "[abc][def]" is treated as a LinkRef, and "(url)" is treated as a Text.
I tried related options, such as "LINK_TEXT_PRIORITY_OVER_LINK_REF", but couldn't get "[def](url)" to be Link.

I can actually guarantee that no link ref will appear in the context. Is there an easy way for me to handle this situation correctly?

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