github-mermaid-extension icon indicating copy to clipboard operation
github-mermaid-extension copied to clipboard

Add support for Azure DevOps wikis

Open alarobric opened this issue 5 years ago • 9 comments

Adds support for Azure DevOps wikis.

Not a lot of changes were required, just adding the URLs to the manifest, and adjusting the selectors.

Azure DevOps seems to put all markdown code blocks into pre[class="hljs"] elements, with a code element under that. Unfortunately they don't expose the language when set to mermaid, but they do expose it for more well-known languages, so I added a selector to exclude any elements where the language is set. This should reduce conflicts with other code block types, but won't fully remove the risk of conflicts.

alarobric avatar Jun 19 '19 18:06 alarobric

This would resolve #5 also.

alarobric avatar Jun 19 '19 18:06 alarobric

@alarobric Some Corporate AzureDevOps teams are still using *.visualstudio.com for their endpoint. Can that be included as well?

dannymyers avatar Jun 19 '19 19:06 dannymyers

@alarobric thanks for your contribution. Now I could use Azure DevOps using Edge Insider with mermaid

ghost avatar Jun 21 '19 10:06 ghost

Actually a configuration UI is needed to setup supported domains, because Azure DevOps Server can run under ANY Url, so this should be also supported

evertonmc avatar Jun 21 '19 11:06 evertonmc

@alarobric Thanks for the PR! I'll have a look at this when I can find some time. This weekend, I hope.

amercier avatar Jun 21 '19 12:06 amercier

@amercier any chance you can take a look at this PR?

dannymyers avatar Aug 28 '19 15:08 dannymyers

@dannymyers Sorry I have been caught by something else, and then I totally forgot to come back at it.

amercier avatar Aug 28 '19 15:08 amercier

@amercier @dannymyers Direct support for mermaid.js was added to the Azure DevOps wikis in Sprint 158. So I'm not sure this particular change is necessary any longer.

Currently Microsoft is using mermaid.js version 8.2.6 and that is becoming increasingly challenging to use since it only offers support for Flowcharts, Sequence diagrams, and Gantt Charts. What would be nice is support the ability to highjack the version that Microsoft is using to swap it out with a given version.

jamesewatkins avatar May 29 '20 19:05 jamesewatkins

It would be brilliant if this PR was in the extension. While the Azure DevOps Wiki does support Mermaid, the rest of the Azure DevOps pages do not, e.g. README.md

derekjwilliams avatar Jul 06 '20 16:07 derekjwilliams