downlit
downlit copied to clipboard
factor out tokenization and export it
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