'''Short description''' It would be fine to have the posibility to write titles with subscripts and superscripts. -- ReimarBauer <> patch to enable typefaces for 1.6dev. So you can write a title with subscripts H,,2,,O all typefaces do work -- ReimarBauer <> {{{#!diff --- text_moin_wiki_orig.py 2007-03-18 18:16:55.000000000 +0100 +++ text_moin_wiki.py 2007-03-18 18:21:16.000000000 +0100 @@ -919,7 +919,18 @@ # Get replace method and replace hit replace = getattr(self, '_' + type + '_repl') - result.append(replace(hit)) + # enables wiki markup in headings (Typefaces) + if type == u"heading": + hit = replace(hit) + Parser = wikiutil.searchAndImportPlugin(self.request.cfg, "parser", 'wiki') + hit = wikiutil.renderText(self.request, Parser, hit) + hit = hit.replace('<', '<') + hit = hit.replace('>', '>') + result.append(hit) + else: + hit = replace(hit) + result.append(hit) + return ''.join(result) else: # We should never get here }}} {{attachment:heading.png}} == Discussion == * !TableOfContents needs to render headings too * is attachment in heading wanted ? * fails with gui editor because converter needs a patch too == Another patch for this == The reason wiki parser can not format the title is that the title it self is matched by the regex and there is no chance for other regex patterns to match against the title. Now links, subscript, or others works in title. For example: * {{{=== [[FeatureRequests/TitleFormatting|Link also works in title ===}}} * {{{=== H,,2,,O =}}} {i} As a side effect of my patch, unblanced left right marker also works. {{{=== Title =}}} is also a valid title. Below is my patch. It may have the same result with the previous one. {{attachment:30430_new_heading_parser.patch}} -- JiangXin <> ---- CategoryFeatureRequest