mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-04 05:44:50 +00:00
Azure devops support #548
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ProCoderMatt on GitHub (Aug 15, 2022).
Hi!
I saw this issue and wanted to mention it here. https://github.com/madskristensen/MarkdownEditor2022/issues/46
I'm writing my docs in visual studio and use the Azure DevOps wiki to read my docs.
When I'm trying to create a mermaid diagram I use the ``` mermaid. But on the devops wiki it need to start with ::: mermaid.
Can we support ::: for mermaid diagrams so we can see the diagram both in visual studio and Azure DevOps?
Thanks!
@xoofx commented on GitHub (Aug 15, 2022):
Not sure how Azure DevOps is working for
:::, but markdig supports Custom Containers:::. Might be enough?@ProCoderMatt commented on GitHub (Aug 15, 2022):
Thanks for your quick response.
I looked into the custom containers and I found that the below converts to html that throws an exception in mermaid.js
I think it's because the custom container adds
<p>element for each line.We need to dump the text between the colons without any tags.
@xoofx commented on GitHub (Aug 15, 2022):
Oh, right, so it's a fenced code block with a different escape.
There is nothing built-in. You will have to create an extension/modify the pipeline to e.g add the
:to the OpeningCharacters of the existingFencedCodeBlockParserand modify the associated renderer to addmermaidhere(Edit: And also, you should not enable the Custom Container extension to avoid the conflict)
@ProCoderMatt commented on GitHub (Aug 22, 2022):
Hi xoofx,
Thanks for your answer!
When I have time I will create a PR :)
@FixRM commented on GitHub (Jan 20, 2026):
Hi there! Thanks for you work. I got another problem with ADO. I hope it will be relatively easy to fix.
For some reason, web editor name folder for pasted images
.attachments(with dot at the beginning). For example:It cause broken preview withmarkdig.@xoofx commented on GitHub (Jan 20, 2026):
There is nothing we can do in Markdig by default. Such link on a site like AZDO (or GitHub) need to be transformed to an absolute link and you have to specify what will be the root of the link. GitHub for instance will change relative links to point to the current branch. You can perform such transform directly on the MarkdownDocument following all links and change them to absolute with the adequate URL for AZDO.
@FixRM commented on GitHub (Jan 20, 2026):
I guess you got me wrong. I think that local rendering with Markdig (or madskristensen/MarkdownEditor2022?) is broken then directory name starts with dot. Unfortunately I have no idea how to check it.
In other words: in my MD file I have related path
/.attachments/xyzand image it is pointing to doesn't render. May be it is MarkdownEditor2022 bug, not sure@madskristensen commented on GitHub (Jan 28, 2026):
You can now specify a custom root path using a frontmatter header property in the VS extension. That should fix the custom folder for AzDO
@FixRM commented on GitHub (Jan 28, 2026):
Thank you, I'll try