File: md2html.lua

package info (click to toggle)
libcap2 1%3A2.75-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie, trixie-updates
  • size: 2,068 kB
  • sloc: ansic: 9,181; sh: 1,138; makefile: 812; cpp: 45; asm: 16
file content (6 lines) | stat: -rw-r--r-- 240 bytes parent folder | download | duplicates (6)
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