We don't get pretty output by default with pandoc lua
like we do with --to native
pandoc -f markdown -t native
![My Image](local/img/jpg)
^Z
[ Figure
( "" , [] , [] )
(Caption
Nothing [ Plain [ Str "My" , Space , Str "Image" ] ])
#!/bin/sh | |
# Called by "git | |
# push" after it has checked the remote status, but before anything has been | |
# pushed. If this script exits with a non-zero status nothing will be pushed. | |
# | |
# This hook is called with the following parameters: | |
# | |
# $1 -- Name of the remote to which the push is being done | |
# $2 -- URL to which the push is being done |
* Set `lang-out` to the language to ignore | |
* Use the LUA filter to remove the element mark with the language | |
``` | |
quarto pandoc --to markdown -L lang-out.lua test.qmd | |
``` |
We don't get pretty output by default with pandoc lua
like we do with --to native
pandoc -f markdown -t native
![My Image](local/img/jpg)
^Z
[ Figure
( "" , [] , [] )
(Caption
Nothing [ Plain [ Str "My" , Space , Str "Image" ] ])
In Github, link to this part is https://gist.github.com/cderv/84a7f00b5de2f7c09c1005b4c75751d1#with-ending-dot
without dot at the end
function Switch-Path { | |
param() | |
$paths=$([Environment]::GetEnvironmentVariable('Path','User') -Split ";") | |
$dev = $paths | Select-String -SimpleMatch "quarto-cli\package\dist\bin" | |
$rel = $paths | Select-String -SimpleMatch "scoop\shims" | |
$repos = gh repo list 'quarto-journals' --no-archived --source --json owner,name,defaultBranchRef -q '.[] | {org: .owner.login, repo: .name, branch: .defaultBranchRef.name}' | ConvertFrom-Json | |
foreach($row in $repos) { | |
echo "Looking for $($row.repo) folder" | |
if (Test-Path -Path $row.repo) { | |
git -C "$($row.repo)" checkout $row.branch | |
git -C "$($row.repo)" pull origin $row.branch | |
} else { | |
gh repo clone "$($row.org)/$($row.repo)" |
<script type="text/javascript"> | |
Reveal.on('slidechanged', event => { | |
getNodes = function(slide) { | |
var level1 = slide.querySelectorAll(":scope > *") | |
childs = [] | |
for (let e of level1) { | |
if (e.nodeName === "DIV" && e.className.includes('cell')) { | |
var level2 = e.querySelectorAll(":scope > *:not(div.cell-output)") | |
childs.push(...level2) |
$wc = [System.Net.WebClient]::new() | |
$pkgurl = $(curl -s https://dailies.rstudio.com/rstudio/latest/index.json | jq -r '.products.desktop.platforms[\"windows-xcopy\"].link') | |
$pkgurl | |
$publishedHash = $(curl -s https://dailies.rstudio.com/rstudio/latest/index.json | jq -r '.products.desktop.platforms[\"windows-xcopy\"].sha256') | |
$publishedHash | |
$FileHash = Get-FileHash -InputStream ($wc.OpenRead($pkgurl)) | |
$FileHash.Hash -eq $publishedHash | |
$FileHash.Hash | |
$publishedHash |