Skip to content

Commit

Permalink
Adapt example running buttons.
Browse files Browse the repository at this point in the history
  • Loading branch information
01mf02 committed Dec 4, 2024
1 parent 7bad736 commit 2de38c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/filters/filter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ function example(test)
end
end

local run_arrow = pandoc.Span("", {class = 'bi bi-box-arrow-up-right ms-2', ["aria-hidden"] = "true"})
local run_attrs = {class = 'btn btn-outline-primary btn-sm', target = "_blank", rel = "noopener"}
simple_table = pandoc.SimpleTable(
"", -- caption
{pandoc.AlignRight, pandoc.AlignLeft},
Expand All @@ -99,7 +101,7 @@ function example(test)
{pandoc.Strong("Filter"), code(filter, "jq" )},
{pandoc.Strong( "Input"), code( input, "json")},
{pandoc.Strong("Output"), code(output, "json")},
{pandoc.Link("Run", url), {}}
{pandoc.Link({"Run", run_arrow}, url, "Run example", run_attrs), {}}
}
)
local table = pandoc.utils.from_simple_table(simple_table)
Expand Down

0 comments on commit 2de38c8

Please sign in to comment.