| - bbcode | | - bbcode |
| - markdown | | - markdown |
| | | |
| The default is still just 'bbcode' because there a | | The default is still just 'bbcode' because there a |
| re several problems with the markdown rendering. ( | | re several problems with the markdown rendering. ( |
| Like: quoting other posts - it is impossible to qu | | Like: quoting other posts - it is impossible to qu |
| ote a bbcode post in a markdown post..) | | ote a bbcode post in a markdown post..) |
| | | |
t | | t | ## board_custom_markup
|
| | |
|
| | | This option works together with board_markup_enabl |
| | | ed and can be used to add
|
| | | custom functions which can be used as markup.
|
| | |
|
| | | For example let's assume we want to create a simpl |
| | | e markup function which only wraps the output into |
| | | a <pre> </pre> tag.
|
| | |
|
| | | We start by creating a function somewhere in the p |
| | | ython path. In my example it's in sphene/custom_ma |
| | | rkup.py
|
| | |
|
| | | def simplemarkup(body):
|
| | | return "<pre>%s</pre>" % body
|
| | |
|
| | | Now define this markup in your settings.py:
|
| | |
|
| | | SPH_SETTINGS['board_custom_markup'] = { 'sphen |
| | | e.custom_markup.simplemarkup': 'Very simple markup |
| | | ', }
|
| | |
|
| | | (The dictionary consists of 1.) the method name in |
| | | cluding the whole module name and 2.) a label whic |
| | | h is displayed to the user.)
|
| | |
|
| | | To allow users to use this markup we have to enabl |
| | | e it, just like any other markup using board_marku |
| | | p_enabled:
|
| | |
|
| | | SPH_SETTINGS['board_markup_enabled'] = ( 'bbco |
| | | de', 'sphene.custom_markup.simplemarkup', )
|
| | |
|
| | | This will leave 'bbcode' as the default selection, |
| | | but users can also select the 'Very simple markup |
| | | '-markup. - You can of course also define only you |
| | | r custom markup method if you don't want to give y |
| | | our users a choice.
|
| | |
|
| # Miscellaneous | | # Miscellaneous |
| | | |
| ## wiki_rss_url | | ## wiki_rss_url |
| | | |
| Is used by the default wiki showSnip template to c | | Is used by the default wiki showSnip template to c |
| reate a link to a rss feed. | | reate a link to a rss feed. |