remark-wiki-link
remark-wiki-link
consists of 3 projects:
micromark-extension-wiki-link
mdast-util-wiki-link
remark-wiki-link
I moved all 3 projects in monorepo - this way it is more convinient to work. Changed all plugins to TypeScript, simplified build process (ES6 only), changed options.
It is also worth to mention: wikirefs.
Open questions
But there is more…
- What about direct integration with BrainDB? (see code above 👆)
- What about PML?
- Related functionality Icons for external links
- support anchors in wikilinks (
[[page#anchor]]
,[[page#anchor|alias]]
)- do we need to url-encode anchors?
- do we need to slugify anchors?
- check that anchors correspond to some header in target document
- what about ambiguous links (
bdb.documentsSync({ slug: permalink }).length > 1
)? - image wikilinks (
![[some.jpg]]
)
Options
- make general plugin for all links, like
remark-code-hook
?- and based on it resolve both wikilinks and PML
- maybe call it
remark-link-resolver
?
- make another plugin which would take
BrainDB
as option - use named exports in
remark-wkik-link
to expose “classic” and “new” versions- where “new” is plugin which would take
BrainDB
as option
- where “new” is plugin which would take