kovetskiy / mark

Sync your markdown files with Confluence pages.
https://samizdat.dev
Other
988 stars 147 forks source link

Move drop-h1 to the renderer #318

Closed mrueg closed 1 year ago

mrueg commented 1 year ago

This is more reliable than a regular expression.

@kovetskiy do you know if we want to drop ALL h1 or just the first one with this?

mrueg commented 1 year ago

Testing it out, it looks like it'd only drop the first h1.

kovetskiy commented 1 year ago

@kovetskiy do you know if we want to drop ALL h1 or just the first one with this?

Sorry for late reply, we need to drop only the first one. This is used by people who render title of the page with h1 (# header) on GitHub (or any other markdown reader), but when they submit the page to Confluence, they would see two titles -- one from confluence and one from h1. Users came with with a flag to drop only the first h1.