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

Obisidan comments inside code blocks (%% content %%) disappears #499

Open
oleeskild opened this issue Oct 31, 2023 · 1 comment
Open

Obisidan comments inside code blocks (%% content %%) disappears #499

oleeskild opened this issue Oct 31, 2023 · 1 comment

Comments

@oleeskild
Copy link
Owner

The plugin will erase any content that is inside two percent signs on either side (Start %% a comment %% end => Start end).

Currently it doesn't discern this pattern from when it is inside a codeblock or not. It should not remove the content if it is inside a code block or inline-code.

One possible solution to this is to remove all codeblocks temporarily from the text, before processing obsidian comments, then put the code block back afterwards.

@tyler-dot-earth
Copy link
Contributor

I suspect that my solution in #596 may also solve this issue as it just wholesale preserves codeblocks.

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