This is an example html2textrc configuration file that can be used in html2text to generate an output suitable for MoinMoin wikis. Pleae note that neither text attributes such as boldface or italics, nor tables will be rendered in MoinMoin syntax. Please refer to the program's FAQ to learn more about restrictions.
# html2textrc(5) file for MoinMoin wikis OL.indents = 4 3 2 UL.indents = 3 2 1 UL.default_types = DISC DISC DISC LI.square_bullet = * LI.circle_bullet = * HR.marker = - HR.vspace.before = 1 HR.vspace.after = 1 ! trailing blanks next 5 lines H1.prefix = = H2.prefix = == H3.prefix = === H4.prefix = ==== H5.prefix = ===== H1.suffix = \ = H2.suffix = \ == H3.suffix = \ === H4.suffix = \ ==== H5.suffix = \ ===== H1.vspace.before = 1 H2.vspace.before = 1 H3.vspace.before = 1 H4.vspace.before = 1 H5.vspace.before = 1 H1.vspace.after = 1 H2.vspace.after = 1 H3.vspace.after = 1 H4.vspace.after = 1 H5.vspace.after = 1 PRE.indent.left = 1 PRE.indent.right = 1 P.vspace.before = 1 P.vspace.after = 1 BLOCKQUOTE.vspace.before = 1 BLOCKQUOTE.vspace.after = 1 BLOCKQUOTE.indent.left = 2 BLOCKQUOTE.indent.right = 1 ADDRESS.vspace.before = 1 ADDRESS.vspace.after = 1 ADDRESS.indent.left = 2 ADDRESS.indent.right = 1 ! tables are not rendered in MoinMoin syntax, though... TABLE.vspace.before = 1 TABLE.vspace.after = 1 H1.attributes = NONE H2.attributes = NONE H3.attributes = NONE H4.attributes = NONE H5.attributes = NONE U.attributes = NONE B.attributes = NONE EM.attributes = NONE STRONG.attributes = NONE STRIKE.attributes = NONE A.attributes.internal_link = NONE A.attributes.external_link = NONE IMG.replace.all =
Same for DokuWiki.
# html2textrc(5) file for DokuWikis OL.indents = 2 OL.vspace.before = 1 OL.vspace.after = 1 UL.indents = 2 UL.vspace.before = 1 UL.vspace.after = 1 LI.disc_bullet = \ \ * LI.square_bullet = \ \ * LI.circle_bullet = \ \ * LI.custom1_bullet = \ \ * LI.custom2_bullet = \ \ * LI.custom3_bullet = \ \ * HR.marker = - H1.prefix = ====== H1.suffix = ====== H1.vspace.before = 1 H1.vspace.after = 1 H1.attributes = NONE H2.prefix = ===== H2.suffix = ===== H2.vspace.before = 1 H2.vspace.after = 1 H2.attributes = NONE H3.prefix = ==== H3.suffix = ==== H3.vspace.before = 1 H3.vspace.after = 1 H3.attributes = NONE H4.prefix = === H4.suffix = === H4.vspace.before = 1 H4.vspace.after = 1 H4.attributes = NONE H5.prefix = == H5.suffix = == H5.vspace.before = 1 H5.vspace.after = 1 H5.attributes = NONE H6.prefix = = H6.suffix = = H6.vspace.before = 1 H6.vspace.after = 1 H6.attributes = NONE PRE.vspace.before = 1 PRE.vspace.after = 1 PRE.indent.left = 2 P.vspace.after = 1