File: filter-html.lua

package info (click to toggle)
fonts-sil-charis 6.101-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,856 kB
  • sloc: python: 45; makefile: 6; sh: 1
file content (10 lines) | stat: -rw-r--r-- 234 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
function Link(el)
  el.target = string.gsub(el.target, "%.md", ".html")
  el.target = string.gsub(el.target, "%.rawmd", ".md")
  return el
end

function CodeBlock(el)
  el.text = string.gsub(el.text, "(.+)", "    %0")
  return el
end