mirror of
https://github.com/olehomelchenko/olehomelchenko.com.git
synced 2026-02-05 02:54:37 +00:00
chore: move posts to qmd
This commit is contained in:
@@ -30,8 +30,9 @@ function CodeBlock(block)
|
||||
local echo = block.attributes['echo']
|
||||
local codeFold = block.attributes['code-fold']
|
||||
|
||||
-- Default to showing code
|
||||
-- Default to showing code collapsed
|
||||
if echo == nil then echo = "true" end
|
||||
if codeFold == nil then codeFold = "true" end
|
||||
|
||||
local result = {}
|
||||
|
||||
@@ -62,7 +63,9 @@ function CodeBlock(block)
|
||||
|
||||
-- Create the HTML output for the visualization
|
||||
local html = string.format([[
|
||||
<div id="%s"></div>
|
||||
<div class="vega-viz-container">
|
||||
<div id="%s"></div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
vegaEmbed('#%s', %s, {"actions": true});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user