Django + trac-wiki to html markdown 'SafeText' object has no attribute 'get'

拈花ヽ惹草 提交于 2019-12-13 04:41:46
问题 I am trying to render trac wiki markdown format as html for display on my website. I tried following this other SO question 'how do i use trac wiki formatting', but the code snippet returns an error when I run it. It should be noted that the question and code are nearly 4 years old. Any idea how I can get this to work? In my i simply call the tracwiki (from the snippet) view. # url(r'^$', 'tracwiki', name='index'), # """ Usage: {% load tracwiki %} {{ object.body

How do I convert HTML code to Confluence-style Wiki Markup?

好久不见. 提交于 2019-12-04 10:20:10
问题 The API documentation for Mylyn Wikitext has functions to convert Wiki Markup to HTML, but I cannot find functions to convert / parse HTML code to Wiki Markup. Class MarkupParser has method parseToHTML , but where can I find the reverse? 回答1: May be this link can help: 回答2: Try Wikifier. It doesn't do exactly what you want, but you might find it does enough, or is a useful starting point. Wikifier converts snippets of the Confluence 4 XML storage format