No description
Find a file
2015-01-19 22:42:32 +01:00
docs Documents task in changes log. Refs #30. 2015-01-08 22:36:45 +01:00
mangler Updates howedown and nimrod wrapper. Refs #25. 2014-12-11 12:39:43 +01:00
midnight_dynamite_pkg Updates howedown and nimrod wrapper. Refs #25. 2014-12-11 12:39:43 +01:00
tests Renames tests to work with generic suite. Refs #30. 2014-12-29 11:21:52 +01:00
vagrant_linux Symlinks vagrant subdirs to common parent dir. Refs #27. 2015-01-19 22:42:32 +01:00
.gitignore Replaces vagrant code with bb_nake. Refs #30. 2014-12-27 19:54:36 +01:00
LICENSE.md Adds basic project documentation. Refs #1. 2014-06-14 00:10:58 +02:00
midnight_dynamite.nim Bumps version numbers for development version. Refs #28. 2014-12-16 01:51:14 +01:00
midnight_dynamite.nimble Uses nim_exe from nake 1.4. Refs #30. 2015-01-08 22:27:09 +01:00
midnight_dynamite_badger.nim Adds snippets option to badger tool. Refs #26. 2014-12-11 23:20:43 +01:00
midnight_dynamite_badger.nimrod.cfg Implements basic midnight_dynamite_badger. Refs #26. 2014-12-11 20:22:12 +01:00
nakefile.nim Uses dot_walk_dir_rec() to avoid breaking .git. Refs #30. 2015-01-08 22:31:00 +01:00
nimdoc.cfg Implements basic midnight_dynamite_badger. Refs #26. 2014-12-11 20:22:12 +01:00
README.md Bumps version numbers for development version. Refs #28. 2014-12-16 01:51:14 +01:00

Midnight dynamite readme

midnight_dynamite is a Nimrod wrapper around the hoedown C library which renders Markdown. The wrapper provides both the low level C API and a higher level convenience layer. The higher level API is not yet complete and offers only basic rendering features. Missing features like table of contents extraction or renderer customization will be provided in future releases.

On top of the library code, the midnight_dynamite_badger.exe program shows how to use the library and provides a simple practical Markdown to html command line tool.

License

MIT license.

Installing the library

Stable version

Install the Nimrod compiler. Then use Nimrod's Nimble package manager to install:

$ nimble update
$ nimble install midnight_dynamite

Development version

Install the Nimrod compiler. Then use Nimrod's Nimble package manager to install locally the github checkout:

$ git clone --recursive https://github.com/gradha/midnight_dynamite.git
$ cd midnight_dynamite
$ nimble install -y

If you don't mind downloading the git repo every time you can also use nimble to install the latest development version:

$ nimble update
$ nimble install -y midnight_dynamite@#head

Documentation

The midnight_dynamite_badger.exe binary has its own manual in docs/midnight_dynamite_badger_usage.md, but running the program with the --help switch should show enough help to get you going.

Generated versions of the documentation can be browsed online at http://gradha.github.io/midnight_dynamite/. You may also browse the tests directory for usage examples.

Programmer documentation is provided as docstrings, you can generate it yourself running the following commands:

$ cd `nimble path midnight_dynamite`
$ nimrod doc midnight_dynamite.nim
$ open midnight_dynamite.html

If you installed using git, run the nimrod doc command where you cloned the repo. Here is a minimal practical usage example:

import midnight_dynamite

when isMainModule:
  var md_params = init_md_params()
  finally: md_params.free
  md_params.render_file("README.md")

Changes

This is development version 1.0.1. For a list of changes see the docs/changes.md file. The hoedown version is 3.0.1.

Git branches

This project uses the git-flow branching model with reversed defaults. Stable releases are tracked in the stable branch. Development happens in the default master branch.

Feedback

You can send me feedback through GitHub's issue tracker. I also take a look from time to time to Nimrod's forums where you can talk to other nimrod programmers.