wiki icon indicating copy to clipboard operation
wiki copied to clipboard

Add support for markdown wikilinks (aka piped links)

Open Mexator opened this issue 1 year ago • 5 comments

This PR adds support for Obsidian-style links.

Syntax is [[Link|Display text]]. The rendering to HTML is done with markdown-it-wikilinks

editor screenshot rendered screenshot

Mexator avatar Aug 22 '24 21:08 Mexator

Use this to prevent generating unnecessary HTML suffixes for MD files.

    mkdown.use(mdWikilinks({
      uriSuffix: ''
    }))

imysl0 avatar Aug 24 '24 03:08 imysl0

Use this to prevent generating unnecessary HTML suffixes for MD files.

    mkdown.use(mdWikilinks({
      uriSuffix: ''
    }))

thanks for the suggestion, done

Mexator avatar Aug 24 '24 10:08 Mexator

I tried it, and it works great. I've integrated it into my own instance. Thank you so much!

imysl0 avatar Aug 27 '24 02:08 imysl0

Hi @Mexator : Are you interested in adding support for markdown-it-container markdown-it-container to wikjs? Although it's a bit abrupt, haha!

imysl0 avatar Nov 24 '24 06:11 imysl0

Hi @Mexator : Are you interested in adding support for markdown-it-container markdown-it-container to wikjs? Although it's a bit abrupt, haha!

No, sorry, I moved on to another wiki engine since I opened this PR

Mexator avatar Jan 02 '25 11:01 Mexator