My note in french about this POC: https://notes.sklein.xyz/Projets/Projet-8
Proof Of Concept of a conceal feature for CodeMirror applied on a WikiLink Markdown syntax: [[Page|alias]]
.
$ mise install
$ pnpm install
$ pnpm run dev
$ firefox http://localhost:5173/
Features:
To create this project, I drew heavily on the source code of the following projects:
lezer-markdown-obsidian
, this file https://github.com/erykwalder/lezer-markdown-obsidian/blob/6223674c535addf0fa60c8a04e3ebf5fd8aa3d7e/src/extensions.ts#L1silverbullet
, this file https://github.com/silverbulletmd/silverbullet/blob/73a427fe48cdf1638bec86aac7a901d4ccbd6c96/web/cm_plugins/wiki_link.ts#L51Screencast:
I spent 11h48 to implement this POC 🙈