MaxMelcher / AzureDevOps.WikiPDFExport

Export Azure DevOps Wiki to PDF
MIT License
186 stars 62 forks source link

Mermaid charts are not rendered #137

Closed NenoLoje closed 9 months ago

NenoLoje commented 1 year ago

When I use the tool using the Azure Pipelines task mermaid syntax (:::mermaid) does not get rendered as mermaid charts.

The resulting PDF looks like this:

grafik

Any idea what is going wrong here?

bizdevops42 commented 1 year ago

I had the same issue. The mermaid diagrams get rendered by adding the option -m (e.g. on Windows azuredevops-export-wiki.exe -m). Apparently the rendering of mermaid is not enabled by default. The option -m/--mermaid is only mentioned in the explanation for the --chrome-path configuration option.

NenoLoje commented 1 year ago

Apparently the rendering of mermaid is not enabled by default. The option -m/--mermaid is only mentioned in the explanation for the --chrome-path configuration option.

Thanks! That certainly helps. I'm now using --mermaid, but it seems it's not rendering the Azure DevOps wiki syntax, which is:

::: mermaid
graph LR
A -->|uses| B
:::

It does render the code blocks though (which Azure DevOps wiki does not render), so this works:

``` mermaid
::: mermaid
  graph LR
  A --> B
:::
`` `
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

NenoLoje commented 1 year ago

Does #61 include support for the Azure DevOps-style mermaid syntax?

matthias-colt commented 1 year ago

...That certainly helps. I'm now using --mermaid, but it seems it's not rendering the Azure DevOps wiki syntax,...

@NenoLoje For me the DevOps style::: mermaid actually works, using latest release 4.6.0. I have not specified the Chrome path, so it was using the headless version.

I also tried with Chrome path specified and it also worked for me.

stale[bot] commented 10 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.