-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added fold-results lua filter, shortcodes section, updated site SEO i…
…mage for opengraph
- Loading branch information
1 parent
4b215c8
commit 58ef84f
Showing
5 changed files
with
95 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
-- Fold output from code chunks | ||
-- In code chunk, add #| attr.output: '.details summary="Output"' | ||
-- Only works for knitr chunks | ||
-- https://gist.github.com/atusy/f2b5b992e45c68ab6823499f2339c6e6 | ||
|
||
function CodeBlock(elem) | ||
if elem.classes and elem.classes:find("details") then | ||
local summary = "Code" | ||
if elem.attributes.summary then | ||
summary = elem.attributes.summary | ||
end | ||
return{ | ||
pandoc.RawBlock( | ||
"html", "<details><summary>" .. summary .. "</summary>" | ||
), | ||
elem, | ||
pandoc.RawBlock("html", "</details>") | ||
} | ||
end | ||
end |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters