As discussed outside of GitHub, this PR factors out the tokenisation that downline uses in highlight() and exports it for use by other packages. It is also being used by highlight() now.
I have not added tests since the behaviour is covered by the extensive testing of highlight(), but let me know if you want to have this
As discussed outside of GitHub, this PR factors out the tokenisation that downline uses in
highlight()
and exports it for use by other packages. It is also being used byhighlight()
now.I have not added tests since the behaviour is covered by the extensive testing of
highlight()
, but let me know if you want to have this