kovetskiy/mark

Linking to blog posts

jphastings opened this issue · 0 comments

What happened?
I was expecting that local links to blog posts would also work when sync'd to Confluence.

Details of files used

A blog entry stored locally at blog/2023-05-10-my-title.md with contents:

<!-- Type: blogpost -->
# My article

It is then sync'd with mark -f blog/2023-05-10-my-title.md, and is available at https://example.atlassian.net/wiki/display/my-space/blog/2023/05/10/123456789/My+article.

Is referenced from a normal page, stored at link-page.md, like this:

# Let's try a link

Here's [a link to a blog post](blog/2023-05-10-my-title.md) which should work.

The resulting HTML for mark -f link-page.md is:

<p>Here&rsquo;s <a href="https://example.atlassian.net/wiki/display/my-space/My+article">a link to a blog post</a> which should work.</p> 

What did you expect to happen?
The a link to a blog post anchor points to an invalid link ("actual" below, instead of "expect" — names chosen to align characters for easier visual diffing)

Expect: https://example.atlassian.net/wiki/display/my-space/blog/2023/05/10/123456789/My+article
Actual: https://example.atlassian.net/wiki/display/my-space/My+article

How can we reproduce the behavior you experienced?

See steps within Details of files used above.

In case this is related to specific markdown, please provide a minimal markdown example here.

** Information (please complete the following information):**

  • Mark Version (mark --version): 9.4.0
  • Mark Parameters: --title-from-h1
  • Confluence Version: Atlassian Cloud
  • Environment specific Information: Running on macOS 13.3.1 (M1/arm)