kovetskiy / mark

Sync your markdown files with Confluence pages.
https://samizdat.dev
Apache License 2.0
993 stars 149 forks source link

Heading Anchors are not translated to confluence rules #492

Open DerGary opened 3 weeks ago

DerGary commented 3 weeks ago

What happened?

I wrote my markdown file with relative anchor links to headings inside the same file and used the markdownlint suggested anchor links. These were not correctly translated to what confluence expects as the anchor links.

Example 1:

# Jobs

[link](#jobs)

Resulted in link: #jobs but Confluence is expecting it to be case sensitive, it should therefore be #Jobs

Example 2:

# this/is_some_heading.yml

[link](#thisis-some-headingyml)

Resulted in link: #thisis-some-headingyml but Confluence is expecting it to contain symbols like this: #this/is_some_heading.yml

It is not possible to change it beforehand because it won't work in the markdown file anymore.

What did you expect to happen?

Mark should check the markdown anchor links and translate them to the expected Confluence link style bevor generating the html for confluence.

How can we reproduce the behavior you experienced?

Steps to reproduce the behavior:

Use one of the example above with the current mark docker container.

Further Information (please complete the following information)

mrueg commented 1 week ago

See also #47