markdown-links icon indicating copy to clipboard operation
markdown-links copied to clipboard

Add a setting to specify the wikilink alias divider

Open ais opened this issue 5 years ago • 2 comments

Partially related to #28

remark-wiki-link already supports aliases using the default : divider. This adds a setting so that it can be changed.

Use case

I use inlined ID-based (or Zettlr-style) links in my notes (e.g.: [[20201231235959|some notes]]). I pair this extension with a Markdown previewer which only supports the MediaWiki syntax (using |).

This will allow me to preview both my notes and graph correctly.

Known issues

Currently, changing this setting requires you to restart VS Code. I'm not sure of an elegant way to solve this, but it also shouldn't need to be changed too often.

ais avatar Dec 28 '20 19:12 ais

This looks very good! Thanks for contributing. I didn't even know : could work as a separator.

As you have mentioned, it is related to #28 in a way, but as it is a minor change in how we use a dependency and default option will be provided, I think we are good to go with introducing this change now.

tchayen avatar Dec 30 '20 01:12 tchayen

@tchayen I've fixed the two comments you had. Let me know if there's anything else!

ais avatar Jan 04 '21 22:01 ais