[Cryptech-Commits] [wiki] 09/75: Notes on table conversion.
git at cryptech.is
git at cryptech.is
Fri Oct 8 18:51:35 UTC 2021
This is an automated email from the git hooks/post-receive script.
sra at hactrn.net pushed a commit to branch production
in repository wiki.
commit c439a6557336e6971688f2a4cc21e0fc2d43a1ed
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Tue Mar 19 18:03:25 2019 +0000
Notes on table conversion.
---
tools/trac2md.py | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/tools/trac2md.py b/tools/trac2md.py
index ab0bf79..85fdd79 100755
--- a/tools/trac2md.py
+++ b/tools/trac2md.py
@@ -128,6 +128,26 @@ def WikiToMD(content):
code_block = False
line = line.replace("}}}", "```")
if not code_block:
+ #
+ # Want to convert tables. References:
+ # https://github.github.com/gfm/#tables-extension-
+ # https://permatrac.noc.ietf.org/wiki/WikiFormatting#Tables
+ #
+ # Table start: line containing "||"
+ # Table end: blank line?
+ #
+ # Figuring out whether there's a real header line is fun,
+ # trac doesn't require one, markdown does. Guess we can
+ # add a dummy header if no better idea. Markdown requires
+ # delimiter line, which we add immediately after the
+ # header, both appear to be mandatory. Trac can have
+ # label cells anywhere, not just in header, might need to
+ # add "*" to those or just ignore the issue.
+ # Justification we can sort of figure out from the header,
+ # if the rows do anything different, ouch, because
+ # markdown specifies in delimiter line.
+ #
+
#
# Convert bullet lists. The start and end of a list needs
# an empty line. wikiformat uses both '*' and '-' for its
More information about the Commits
mailing list