Relative links break after quotes #66
-
Hi, I am using md2cf to build company internal documentation. I was very happy with relative links being released in the last version. I noticed though that they break after making a quote with Before and in the quote, the links are working, after that if will replace all links with the same page just adding an int that is counting up. It seems to use the first page that was linked. Anything I can do on my end to fix this? Thanks in advance! Example: [First link to relative page](./first/link/to/relative/page)
> **Tip:** This is a callout with a [second link to a relative page](./second/link/to/relative/page)
[Third link to relative page](./third/link/to/relative/page)
[Forth link to relative page](./forth/link/to/relative/page) Working: Broken: Expected: |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
I dug into this a little more and found out that using quote is unrelated. It simply does not do more than nine links properly. The tenth link and all after are replace with ./first/link/to/relative/page+. |
Beta Was this translation helpful? Give feedback.
-
Thanks for reporting this: I'll take a look! |
Beta Was this translation helpful? Give feedback.
-
I can't reproduce this. I created files from Could you provide me with a complete minimal example that shows the bug on your side, please? |
Beta Was this translation helpful? Give feedback.
-
Sure, here you go. I have three pages in a folder:
This is what TestOne.md looks like: # Test One
## First links
1. [Test Two](TestTwo.md)
2. [Test Two](TestTwo.md)
3. [Test Two](TestTwo.md)
4. [Test Two](TestTwo.md)
5. [Test Two](TestTwo.md)
6. [Test Two](TestTwo.md)
7. [Test Two](TestTwo.md)
8. [Test Two](TestTwo.md)
## Next links
1. [Test Three](TestThree.md)
2. [Test Three](TestThree.md)
3. [Test Three](TestThree.md)
4. [Test Three](TestThree.md)
5. [Test Three](TestThree.md)
6. [Test Three](TestThree.md)
This is what the generated xhtml looks like: <h1>Test One</h1>\n
<h2>First links</h2>\n
<ol>\n
<li><a href=\"https://company.atlassian.net/wiki/spaces/TE/pages/2644639775/Test+Two\">Test Two</a></li>\n
<li><a href=\"https://company.atlassian.net/wiki/spaces/TE/pages/2644639775/Test+Two\">Test Two</a></li>\n
<li><a href=\"https://company.atlassian.net/wiki/spaces/TE/pages/2644639775/Test+Two\">Test Two</a></li>\n
<li><a href=\"https://company.atlassian.net/wiki/spaces/TE/pages/2644639775/Test+Two\">Test Two</a></li>\n
<li><a href=\"https://company.atlassian.net/wiki/spaces/TE/pages/2644639775/Test+Two\">Test Two</a></li>\n
<li><a href=\"https://company.atlassian.net/wiki/spaces/TE/pages/2644639775/Test+Two\">Test Two</a></li>\n
<li><a href=\"https://company.atlassian.net/wiki/spaces/TE/pages/2644639775/Test+Two\">Test Two</a></li>\n
<li><a href=\"https://company.atlassian.net/wiki/spaces/TE/pages/2644639775/Test+Two\">Test Two</a></li>\n
</ol>\n
<h2>Next links</h2>\n
<ol>\n
<li><a href=\"https://company.atlassian.net/wiki/spaces/TE/pages/2645458954/Test+Three\">Test Three</a></li>\n
<li><a href=\"https://company.atlassian.net/wiki/spaces/TE/pages/2644639775/Test+Two0\">Test Three</a></li>\n
<li><a href=\"https://company.atlassian.net/wiki/spaces/TE/pages/2644639775/Test+Two1\">Test Three</a></li>\n
<li><a href=\"https://company.atlassian.net/wiki/spaces/TE/pages/2644639775/Test+Two2\">Test Three</a></li>\n
<li><a href=\"https://company.atlassian.net/wiki/spaces/TE/pages/2644639775/Test+Two3\">Test Three</a></li>\n
<li><a href=\"https://company.atlassian.net/wiki/spaces/TE/pages/2644639775/Test+Two4\">Test Three</a></li>\n
</ol>" Instead of pointing to Page Test Three, the links point to |
Beta Was this translation helpful? Give feedback.
-
This should be fixed by #67 in version 2.0.2 |
Beta Was this translation helpful? Give feedback.
This should be fixed by #67 in version 2.0.2