Table of Content
1. Running lua code 🔗
Running lua code is done using the following syntax: %<print("Hello World!")>%
1.1. Lua to text 🔗
To convert the return value of your lua code, append "
at the start of your lua expression:
%<"return "Hello World">%
→ Hello World%<" "Hello, " .. "World">%
→ Hello, World
1.2. Parse lua string 🔗
Additionnaly, you can output lua to be parsed by the document's parser. To do so, append !
at the start of your lua expression:
%<!"**" .. "Bold from lua?" .. "**">%
→ Bold from lua?%<!"[" .. "Link from Lua" .. "](#)">%
→ Link from Lua