#* Markdown Underlined Headings ============================ Attempting to recognise markdown style heading and format them as html. This seems to be mainly working, although empty lines are lost. As usual it seems very verbose for a script that doesnt do very much. Notes ----- This script could be used as the basis for a script that parses and compiles a bash history file. Testing ------- try: pp -f markdown.underline.pss markdown.underline.pss *# read; "\n" { clear; } until "\n"; E"\n" { clip; } put; # if the underlines have a space at the end this will fail [= ].E"==" { clear; add "double.uline*"; push; .reparse } [- ].E"--" { clear; add "single.uline*"; push; .reparse } clear; add "line*"; push; .reparse parse> # 2 tokens pop; pop; "line*double.uline*" { clear; add "