Tuftemark

Online Documentation.

Tuftemark converts Markdown content into format that is suitable to be used with Tufte CSS tool.

Tufte CSS layout requires a few things to be applied to the HTML, for example:

The as_html!/2 method is trying to apply all the given transformation to the originally parsed AST, so we get applicable HTML output in the end.

Extra Modifications

Some of layout decisions cannot be made automatically, but we can use some super powers provided us by default Earmark's Parser.

For example:

See all such examples in the TuftemarkTest suite.

Installation

The package can be installed by adding tuftemark to your list of dependencies in mix.exs:

def deps do
  [
    {:tuftemark, "~> 0.1.0"}
  ]
end