]> git.proxmox.com Git - mirror_frr.git/blobdiff - render_md.py
Merge pull request #1690 from dslicenc/bgpd-vrf-show-cm17377
[mirror_frr.git] / render_md.py
index d2d1fb4805dc861fd560bb0c2c3239d7990fa68a..16c4bbe8a30e0446759a284a5919394d4d2a7861 100644 (file)
@@ -4,11 +4,14 @@ import sys, markdown
 
 template = '''<html><head><meta charset="UTF-8"><style type="text/css">
 body { max-width: 45em; margin: auto; margin-top: 2em; margin-bottom: 2em;
-    font-family:Fira Sans,sans-serif; text-align: justify; }
+    font-family:Fira Sans,sans-serif; text-align: justify;
+    counter-reset: ch2; }
 pre, code { font-family:Fira Mono,monospace; }
 pre > code { display: block; padding:0.5em; border:1px solid black;
     background-color:#eee; color:#000; }
-h2 { clear: both; margin-top: 3em; text-decoration: underline; }
+h2:before { content: counter(ch2) ". "; counter-increment: ch2; }
+h2 { clear: both; margin-top: 3em; text-decoration: underline; counter-reset: ch3; }
+h3:before { content: counter(ch2) "." counter(ch3) ". "; counter-increment: ch3; }
 h3 { clear: both; margin-top: 2em; font-weight: normal; font-style: italic; }
 h4 { font-weight: normal; font-style: italic; }
 img[alt~="float-right"] { float:right; margin-left:2em; margin-bottom:2em; }