Project

martile

0.01
Low commit activity in last 3 years
No release in over a year
Martile is a Markdown pre formatter which is designed to format custom Markdown tags prior to being passed to the Markdown gem.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.1, >= 0.1.6
~> 0.3, >= 0.3.4
~> 0.4, >= 0.4.0
~> 2.1, >= 2.1.2
~> 0.3, >= 0.3.5
~> 0.8, >= 0.8.1
 Project Readme

Introducing the Martile gem

The Martile gem attempts to address some of the issues I have with Markdown using a variation of Textile. It is intended that this gem is executed before it's processed as markdown.

require 'martile'

s = "
# title1

[# sun

    fun
    1234

# run
today
# bun
# pun]

dd

    tttt
    rrrr
    ssss

ee


* an ordinary
* list

"


html = Martile.new(s).to_html

output

# title1

<ol><li>sun
<pre><code>fun
1234</code></pre></li><li>run
today</li><li>bun</li><li>pun</li></ol>

dd
<pre><code>tttt
rrrr
ssss</code></pre>

ee


* an ordinary
* list

Resources