File: md2html.lua

package info (click to toggle)
libcap2 1%3A2.66-4%2Bdeb12u2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,868 kB
  • sloc: ansic: 8,716; sh: 1,072; makefile: 723
file content (6 lines) | stat: -rw-r--r-- 240 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
-- This is the links-to-html.lua example from stackoverflow:
-- https://stackoverflow.com/questions/40993488/convert-markdown-links-to-html-with-pandoc
function Link(el)
  el.target = string.gsub(el.target, "%.md", ".html")
  return el
end