I am trying out the free trial, but I love this product already and am probably going to buy it!
I have been developing markdown utilities in Unified / Remark / Micromark for the past month, and I love that Inkdrop is already using Unified and has extension capabilities!
From my limited understanding of Unified’s ecosystem, it seems there was a major update and plugins after the update are incompatible with unified before the update. There are two remark plugins I want to add to my inkdrop plugin:
remark-directives
some custom code for a micromark wikilink tokenizer and a remark parser to go along with it.
Are there plans to update Inkdrop’s dependencies to the latest unified version so I can integrate my remark plugins with the renderer in inkdrop?
So it appears that Inkdrop is still on the old version of remark, so the current remark-directives plugin is incompatible. But that’s not a problem. It wasn’t that much work to write a simple tokenizer for generic directives using inkdrop-admonition as an example.
Results of my POC:
Input:
# Testing directives
::::lvlone[Hey!]{#test .test}
## Directive level one
Should be `<div id="test" class="test">`
:::lvltwo{.hello-world}
### Directive level two
Should be `<div class="hello-world>`
:test [Inline directive. Should be `<span class="bold">`] {.bold}
::div [Leaf directive. Should be `<div foo="bar"></div>`] {foo="bar"}
::div [# Leaf directive as heading] {foo="bar"}
:::
::::
Thanks for the question and report.
You are right. Inkdrop is still using the old version of Remark.
Great to know that you got it to work!
I’m planning to upgrade it in the future but as you know it’ll have some breaking changes, so I should be careful to do that.