Artifact 316810ba7c810f899420b7b3983c50fc72ef13ab35a9bd5cc8059fb9f2fbc16b:
- File tools/markdown2html.tcl — part of check-in [5e80e55e41] at 2026-09-26 22:40:07 on branch tip-700 — - added a "title" metadata element to the generated yaml block to satisfy Pandoc when converting to HTML - added markdown2html.tcl as prototype/placeholder of conversion script markdown -> HTML - added some CSS to play with a good visual representation of the generated HTML, starting with the n section pages - fixed man2markdown.tcl not giving the two .TP/.IP parsing places the same treatment (user: Torsten, size: 582) [annotate] [blame] [check-ins using]
package require Tcl 9 # This script is a prototype/placeholder for converting markdown-formatted manual pages # (as produced by man2markdown.tcl) into HTML-formatted manual pages, # using Pandoc. exec \ pandoc -f markdown-tex_math_dollars-smart -t html -s -c tcl-docs.css -o ../doc/html/string.html ../doc/markdown/string.md exec \ pandoc -f markdown-tex_math_dollars-smart -t html -s -c tcl-docs.css -o ../doc/html/dict.html ../doc/markdown/dict.md exec \ pandoc -f markdown-tex_math_dollars-smart -t html -s -c tcl-docs.css -o ../doc/html/chan.html ../doc/markdown/chan.md