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

Refactor matching logic to use markdown AST #25

Open
A opened this issue Feb 20, 2022 · 0 comments
Open

Refactor matching logic to use markdown AST #25

A opened this issue Feb 20, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@A
Copy link
Owner

A commented Feb 20, 2022

Problem

Current matchers are implemented as regexps and inlined into each entity class. Matching happens against the markdown content, and doesn't take AST into account. It creates a lot of edge cases and additional complexity to handle it.

Definitiion of Done

  • matching of obsidian entities and markdown links happens on the AST level and creates AST-notes.

Links

  • Mistune is a fast yet powerful Python Markdown parser with renderers and plugins.
  • Mistletoe is a fast, extensible and spec-compliant Markdown parser in pure Python.
  • Marko is a markdown parser with high extensibility.
@A A added the enhancement New feature or request label Feb 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant