Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for markdown wikilinks (aka piped links) #7319

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Mexator
Copy link

@Mexator Mexator commented Aug 22, 2024

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

@imysl0
Copy link

imysl0 commented Aug 24, 2024

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

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

@Mexator
Copy link
Author

Mexator commented Aug 24, 2024

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

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

thanks for the suggestion, done

@imysl0
Copy link

imysl0 commented Aug 27, 2024

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

@imysl0
Copy link

imysl0 commented Nov 24, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants