File: filter-pdf.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 (16 lines) | stat: -rw-r--r-- 381 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function Link(el)
  el.target = string.gsub(el.target, "(.+)", "../../pdf/%0")
  el.target = string.gsub(el.target, "%.md", ".pdf")
  el.target = string.gsub(el.target, "%.rawmd", ".md")
  return el
end

function Image(el)
  el.src = string.gsub(el.src, "(.+)", "../../%0")
  return el
end

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