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

Snippets block is incorrectly escaped #34

Open
pelson opened this issue Aug 9, 2024 · 2 comments · May be fixed by #43
Open

Snippets block is incorrectly escaped #34

pelson opened this issue Aug 9, 2024 · 2 comments · May be fixed by #43
Assignees

Comments

@pelson
Copy link

pelson commented Aug 9, 2024

Given the use of snippets (https://facelessuser.github.io/pymdown-extensions/extensions/snippets/), the documented markup (--8<-- "filename.ext") is escaped, such that it becomes --8\<-- "filename.ext") and the resulting page is the escaped literal, instead of the included snippet.

Tested with the latest version of mdformat-mkdocs

@KyleKing KyleKing self-assigned this Aug 20, 2024
@pelson
Copy link
Author

pelson commented Aug 22, 2024

Would it be helpful if I try to fix this? I'll be honest and say that I'm not clear at all where such a fix would go (there is no obvious escaping section in the codebase)...

@KyleKing
Copy link
Owner

KyleKing commented Aug 22, 2024

Thanks, if you have time, I would be open to contributions!

My plan was to add an inline parser that recognizes pymdown snippets. The closest recent example I have is here: KyleKing/mdformat-obsidian@135790a#diff-f658f5a83906fbf2444fbf383869444a5a44f642b0ceb2022bdfa66e9c895274 (before I realized there was an mdit-py-plugin)

@KyleKing KyleKing linked a pull request Oct 30, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants