Djot support in Lite-XL #274
Tamnac
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just wanted to show off a plugin I made for the lite-xl editor adding djot support. https://github.com/Tamnac/lite-xl-djot
For now it's only syntax highlighting and the parser is just lua patterns (regex equivalent) so it's not gonna be fully correct.
More importantly, I have a working html preview in a browser tab on my machine thanks to Djot.lua. I haven't added it to the plugin yet because I'm trying to see if I can get it to be live, instead of having to reload.
I also had to modify the library a bit, not sure if that's due to the lite-xl lua environment or an issue in the library. Not very familiar in lua but basically changing all instances of the line
local unpack = unpack or table.unpack
to get rid of the naked unpack because it would throw an error. If anyone known lua better than me I would appreciate advice.Beta Was this translation helpful? Give feedback.
All reactions