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

Parsing: add reference nodes to AST tree #244

Open
quenbyako opened this issue Jun 19, 2022 · 1 comment
Open

Parsing: add reference nodes to AST tree #244

quenbyako opened this issue Jun 19, 2022 · 1 comment

Comments

@quenbyako
Copy link

Here is the problem: autoresolving of referenced links works well, however, for me, it's strictly important to get reference link definitions unchanged. E.g. this code:

Hello [world][wiki-world]

[wiki-world]: https://wikipedia.com/blah-blah-blah

can't be parsed and rendered back again to same structure, instead of this, ast with markdown renderer, renders to this structure:

Hello [world](https://wikipedia.com/blah-blah-blah)

which isn't what i expect from syntax tree.

I looked a bit in code, and found that for now, links parser has overcomplicated structure, imho, so maybe it's time to refactor it a bit? As far as i understand, the proposed change is impossible with current implementation of links parser.

@kjk
Copy link
Contributor

kjk commented Jun 19, 2022

I'm happy to accept patches but to set expectation: I'm not going to work on this myself.

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

2 participants