- First PyPI release!
- Added error-handling to the wizard, so it wouldn't just willy-nilly convert rst files as markdown :P
- Use GitHub Flavored Markdown (gfm) by default
- Fixes a bug I accidentally re-introduced where it isn't playing well with quotation marks. :P
Math expressions are removed, as there is very little use for them.
You can define custom function calls using Python, with the using keyword, which will execute raw Python from a file, so use it at your own discretion. For example, a script above the website source directory, named "echo.py", contain the following definitions:
Which is then called by invoking: <!--: using: ../echo.py -->
And then can be used by enclosing the following in parentheses - the function name as well as the arguments: <!--: my-var = (echo "hello") -->
The much-needed include keyword arrives: <!--: include: includes/header.html -->.
This will include a file relative to the source directory as if it was pasted right into the currently processed file, allowing for some more dynamic web element manipulation.
- Zim Wikitext support now added! However, because MDiocre at the moment relies on file extensions, the file name has to end in a .zimtxt. Additionally, MDiocre commands will be in the form of [mdiocre: <command>] - you simply type it in when writing a Zim document. The number of spaces around the command doesn't really matter as long as they are on one line.
- mdiocre.core.MDiocre.sub_func has been removed.
- Introducing a simple Tk GUI for MDiocre (mdiocre_gui.py). Its features currently match that of the CLI version (mdiocre.py), but individual file conversion and string conversion is planned.
- Added sample scripts that use the MDiocre API
- RSS feed generator (samples/make_feed.py)
- Index page generator, with pagination (samples/make_index.py)
- Tags page generator (samples/make_tags.py)
- The comment-parsing system has been changed in core. Instead of going through the string directly through re, it goes through a parser, which really just implements the same functions. This opens up the possibility for other formats to be added as an input to MDiocre. ReStructuredText support can be added due to this.
- The Wizard can now take a callback function. The callback function is run after each file is processed, and passes a dict containing the original file name, the converted file name, as well as the root directory.
- The MDiocre class can now take a parser or parser_name option. The parser option must be set to a class inheriting BaseParser, or you can set the parser_name. Built-in ones currently include: markdown, html, rst. If both parser and parser_name are defined, parser takes precedence.
- mdiocre.core.MDiocre.sub_func has been moved to mdiocre.parsers.sub_func. The former will be removed in MDiocre 3.2.
All-new rewrite of MDiocre, with the aim to "modularize" it and keep it easy-to-use.