diff options
Diffstat (limited to 'lexicon_filter.in')
-rw-r--r-- | lexicon_filter.in | 43 |
1 files changed, 10 insertions, 33 deletions
diff --git a/lexicon_filter.in b/lexicon_filter.in index 13e8b6d7..b618a1b7 100644 --- a/lexicon_filter.in +++ b/lexicon_filter.in @@ -72,7 +72,16 @@ b html } # Preprocess specially recognized commands. + s/\\asis/@asis/g + s/\\bksl/@bksl/g + s/\\bold/@bold/g + s/\\emph/@emph/g + s/\\eror/@eror/g + s/\\mtch/@mtch/g s/\\outp/@outp/g + s/\\sgst/@sgst/g + s/\\smtc/@smtc/g + s/\\undr/@undr/g # Process the rest b process } @@ -96,7 +105,7 @@ s|<b>|@bold{| s|<b [^>]*>|@bold{| s|</b>|}| #. -# Strong (synonimous with emphasis) +# Strong (synonymous with emphasis) s|<strong>|@bold{| s|<strong [^>]*>|@bold{| s|</strong>|}| @@ -115,39 +124,7 @@ s|</i>|}| s|<u>|@undr{| s|<u [^>]*>|@undr{| s|</u>|}| -# Backslash (when escaping output) -s|<bs>|@bksl{| -s|</bs>|}| -t html #. -# Some handy non-standard extensions -# autoSuGgeSTion -s|<s>|@sgst{| -s|<s [^>]*>|@sgst{| -s|</s>|}| -#. -# MaTCH -s|<m>|@mtch{| -s|<m [^>]*>|@mtch{| -s|</m>|}| -#. -# SearchMaTCh -s|<sm>|@smtc{| -s|<sm [^>]*>|@smtc{| -s|</sm>|}| -#. -# ERrOR -s|<error>|@eror{| -s|<error [^>]*>|@eror{| -s|</error>|}| -#. -# AsIs - protect from auto-formatting -s|<asis>|@asis{| -s|</asis>|}| -#. -# OUTPut - protect from auto-formatting -s|<outp>|@outp{| -s|</outp>|}| t html #. # Clean other unhandled html |