Skip to content

Conversation

@jforberg
Copy link

These comments are not part of the document proper and it's tricky when they contain other markup.

A future improvement could be to translate these into HTML comments in the output.

@zoni
Copy link
Owner

zoni commented Jun 24, 2025

Thanks for working on this @jforberg. I'm going to mirror what I said in #36 with that I agree this functionality should become part of obsidian-export, but doubt that it's necessary to implement this in the core parsing logic though.

Think you could try moving this into a postprocessing function instead?

In addition to normal HTML comment style, Obsidian supports comments
enclosed by "%%".
@jforberg
Copy link
Author

@zoni I have rewritten the patch to use a postprocessor instead. I also changed so that Obsidian-style comments are translated into normal markdown/HTML comments, this means they could be used for something later if needed.

@jforberg jforberg changed the title Strip obsidian comments from output Parse obsidian-style comments Jun 25, 2025
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 this pull request may close these issues.

2 participants