Changes between Version 24 and Version 25 of WikiProcessors
- Timestamp:
- Dec 10, 2007, 2:30:04 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiProcessors
v24 v25 118 118 119 119 == Advanced Topics: Developing Processor Macros == 120 Developing processors is no different from Wiki Macros. In fact they work the same way, only the usage syntax differs. SeeWikiMacros for more information.120 Developing processors is no different from Wiki macros. In fact they work the same way, only the usage syntax differs. See TracWikiMacros for more information. 121 121 122 '''Example:''' (''Restructured Text Processor''):123 {{{124 #!python125 from docutils.core import publish_string126 127 def execute(hdf, text, env):128 html = publish_string(text, writer_name = 'html')129 return html[html.find('<body>')+6:html.find('</body>')].strip()130 }}}131 122 132 123 ---- 133 See also: WikiMacros, WikiHtml, WikiRestructuredText, TracSyntaxColoring, WikiFormatting, TracGuide124 See also: TracWikiMacros, WikiHtml, WikiRestructuredText, TracSyntaxColoring, WikiFormatting, TracGuide