mirror of
https://0xacab.org/dCF/deCloudflare.git
synced 2025-01-15 03:37:00 -05:00
Add files used for rendering the markdown files
This commit is contained in:
parent
39345055d6
commit
4d735a2c21
@ -1 +1,6 @@
|
||||
-
|
||||
This directory contains the pandoc template used to render the markdown files in this repository.
|
||||
|
||||
To render a specific file, you need to run the following command:
|
||||
```
|
||||
pandoc --from commonmark_x input_file --output=output_file --template=template.html --lua-filter=links-to-html.lua
|
||||
```
|
||||
|
4
tool/md2html/links-to-html.lua
Normal file
4
tool/md2html/links-to-html.lua
Normal file
@ -0,0 +1,4 @@
|
||||
function Link(el)
|
||||
el.target = string.gsub(el.target, "%.md", ".html")
|
||||
return el
|
||||
end
|
26
tool/md2html/style.css
Normal file
26
tool/md2html/style.css
Normal file
@ -0,0 +1,26 @@
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
table > thead th {
|
||||
border: 1px solid black;
|
||||
border-bottom: 2px solid black;
|
||||
}
|
||||
|
||||
td {
|
||||
border: 1px solid black;
|
||||
padding: 0.8em;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
summary > * {
|
||||
/*
|
||||
* Make summary display on the same line, instead of
|
||||
* splitting into multiple lines
|
||||
*/
|
||||
|
||||
display: inline-flex;
|
||||
}
|
11
tool/md2html/template.html
Normal file
11
tool/md2html/template.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="initial-scale=1.0">
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
</head>
|
||||
<body>
|
||||
$body$
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user