kovetskiy / mark

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

Ignore tags #317

Open coler-j opened 1 year ago

coler-j commented 1 year ago

Is your feature request related to a problem? Please describe. I have content in my md file which does not render nicely in confluence (i.e. a ToC that looks and works well in GH but not in confluence)

Describe the solution you'd like It would be nice if there were "ignore" tags that I could use to wrap my content that I don't want mark to interpret.

Describe alternatives you've considered None.

Additional context

kovetskiy commented 1 year ago

Hi,

Why isn't CI/CD pipeline with a simple script to skip some files is enough?

Consider something simple like gpt suggests: image

mrueg commented 1 year ago

I can see some usecase for this and it should be easy to implement.

<!-- Include: ac:profile
    Name: Doe, John -->
<!-- ac:ignore -->
John Doe's profile
<!-- ac:ignore end -->

In Markdown you'll have a nice replacement for your Include that does not get rendered there.

@kovetskiy wdyt?

kovetskiy commented 1 year ago

Oh, I see. That could be useful.

coler-j commented 1 year ago

Yes, this is my use case essentially. I have content that doesn't render well in Confluence.

On Tue, May 23, 2023, 6:35 a.m. Egor Kovetskiy @.***> wrote:

Oh, I see. That could be useful.

— Reply to this email directly, view it on GitHub https://github.com/kovetskiy/mark/issues/317#issuecomment-1559026032, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB3Z67YRGRKQS2IZE4RZBOLXHSHIJANCNFSM6AAAAAAYD3W2T4 . You are receiving this because you authored the thread.Message ID: @.***>

joyfulrabbit commented 1 year ago

I had to sanitize a LOT tables (or recreate them using mermaid or an image) where carriage returns or other html formatting was used to make things look pretty. Those random html tags cause parsing errors and do not publish. I would love the flexibility of a feature like this. Happy to test a branch if someone has something.