About Download Docs Changes

Disable superfluous Markup features

I'd want the ability to have a clean Creole Markup without the extensions you implemented that clutter my pages, namely

something like a config section:

[extensions]
camelcase=True
blockindenting=True

or

[Hatta]
CreoleExtensions=True

would be greatly apreciated

Ben

That's definitely planned, but still requires a little more work from me on subclassing the parser. I want to eventually have plugins adding markup to the parser, although it's still not clear to me how to organize that in the code. I won't release 1.4 with wiki words enabled by default for sure. Indentation was there since the beginning, so it's less of an immediate problem – even with the option, it would be on by default. – Radomir Dopieralski


The current development version now accepts -W, --wiki-words and wiki_words = True for enabling WikiWords, and -I, --ignore-indent and ignore_indent = True for disabling indentation. I hope you will find it useful. – Radomir Dopieralski


I can't get boolean values to work in my WikiConfig … I've already seen it with hgweb, and now, with those one, somehow, my config are not propagated to the right instance …

This is via a dict in my wsgi:

config=hatta.WikiConfig(
    pages_path="/var/www/wiki/content",
    cache_path="/tmp/hatta",
    front_page="index",
    hgweb=True,
    ignore_indent=True,
)

I don't stop getting a 403 on +hg and the indent block are still rendered as <pre>.

Ben


As an update to that one, with this changeset applied, it works fine. Who wants to give args to WSGI scripts anyway ! One might want to fix it in the function itself though.

Ben