Usage
Start by creating a code block with js-engine
as the code block language.
Inside the code block you can write what ever JavaScript code that you want.
The plugin will run the JavaScript and render the returned value in place of the code block.
The following example will render a simple plain text string.
*test*
We can use the engine.markdown.create
function to render the string as markdown.
test
When you return nothing or undefined
, the plugin will not render anything and the code block will be invisible.