File: use-pagetitle.lua

package info (click to toggle)
libpod 4.3.1%2Bds1-8%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 18,252 kB
  • sloc: sh: 4,696; perl: 2,043; python: 1,908; ansic: 1,188; makefile: 848; xml: 89; ruby: 42; awk: 12
file content (14 lines) | stat: -rw-r--r-- 390 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
local List = require("pandoc.List")

function Meta(m)
  -- Use pagetitle instead of title (prevents pandoc inserting a <H1> title)
  m.pagetitle = m.title
  m.title = nil

  if m.pagetitle ~= nil and m.pagetitle.t == "MetaInlines" then
    -- Add suffix to match the Sphinx HTML documentation
    List.extend(m.pagetitle, {pandoc.Str" \u{2014} Podman documentation"})
  end

  return m
end