AgeCommit message (Collapse)AuthorLines
Render README markdown in the browserBryce Kwon-304/+0
cgit had no markdown support of its own, so a readme was rendered through an external python filter or not at all. Escaping the source and formatting it in cgit.js keeps the work in the browser like the blob highlighter, and the page stays readable as plain text without scripting.
Reorganize into source, assets and librariesBryce Kwon-0/+0
The C sources move to source/, the served files to assets/, the bundled Git submodule to libraries/git and the filter scripts to extensions/. Everything the build generates now lands in build/, so a clean is a single remove and the tree stays clean.
md2html: use proper formatting for hrChristian Hesse-5/+1
This addressed a non-existent background image and made the element invisible. Drop the style and use something sane. Signed-off-by: Christian Hesse <mail@eworm.de>
md2html: use sane_lists extensionJason A. Donenfeld-0/+1
This allows for cleaner nesting semantics and matches github more closely. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
filters: generate anchor links from markdownChristian Hesse-2/+15
This makes the markdown filter generate anchor links for headings. Signed-off-by: Christian Hesse <mail@eworm.de> Tested-by: jean-christophe manciot <actionmystique@gmail.com>
md2html: use utf-8 and flush output bufferJason A. Donenfeld-6/+11
Otherwise we get the classic Python UTF-8 errors, and the text is all out of order. While we're at it, switch to python3 so we only have to support one set of oddball semantics. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Suggested-by: Daniel Campbell <dlcampbell@gmx.com>
md2html: Do syntax highlighting tooJason A. Donenfeld-1/+5
md2html: the default of stdin works fineJason A. Donenfeld-2/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
md2html: use pure pythonJason A. Donenfeld-6/+9
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
filters: Simplify convertersJason A. Donenfeld-1/+282
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
filters: import more modern scriptsJason A. Donenfeld-0/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>