mdzk-rs / mdzk

General-purpose interface to connected notes
https://mdzk.app
Mozilla Public License 2.0
235 stars 18 forks source link

The mermaid preprocessor breaks backlinks #65

Closed arg3t closed 2 years ago

arg3t commented 2 years ago

When trying to use the mermaid preprocessor with the following configuration:

[mdzk]
authors = ["Yigit Colakoglu"]
ignore = ["Excalidraw", "Images"]
language = "en"
multilingual = false
src = "notes"
title = "Obsidian Wiki"
description = "An online version of my Zettelkasten"

[output.html.fold]
enable = true
level = 1

[build]
preprocessors = ["mermaid"]

[output.html]
additional-js = ["mermaid.min.js", "mermaid-init.js"]

The backlinks are added successfully, but they are not turned into hyperlinks in HTML correctly as you can see in the image below:

CE959C92-88E3-42CA-8243-68C3AF4FEEC0

arg3t commented 2 years ago

The issue is in the mermaid processor. I have created a separate issue there (https://github.com/badboy/mdbook-mermaid/issues/13).