obsidian-export icon indicating copy to clipboard operation
obsidian-export copied to clipboard

Parse obsidian-style comments

Open jforberg opened this issue 6 months ago • 2 comments

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.

jforberg avatar Jun 24 '25 12:06 jforberg

Thanks for working on this @jforberg. I'm going to mirror what I said in https://github.com/zoni/obsidian-export/pull/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?

zoni avatar Jun 24 '25 13:06 zoni

@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 avatar Jun 25 '25 09:06 jforberg