25/12
2012
dev-master
9999999-devinML - inline markup language
The Requires
- php >=5.4
Wallogit.com
2017 © Pedro Peláez
inML - inline markup language
inML is concise and intuitive markup language. This repository contains description of inML markup language and PHP-written library and example script in order to render inML-formatted text into HTML and Text formats., (*1)
.style <p class="style">
Paragraph. => Paragraph.
</p>
.style Line <span class="style"> OR => Line Line .style </span>
<span class="style">
word.style => word
</span>
.div.style <div class="style">
Paragraph. => Paragraph.
</div>
inML.link is intuitive markup language.
=> <a href="https://github.com/ptrofimov/inml">inML</a>
#link https://github.com/ptrofimov/inml is intuitive markup language.
inML-formatted text:, (*2)
.h1 inML - inline markup language .i inML.b is simple and compact markup that could be easily transformed into HTML.b .b Key points: .ul .li Easy text formatting .li Traditional embedded HTML.b styles .li Ability to add user styles
transforms into HTML:, (*3)
<p>
<h1>inML - inline markup language</h1>
</p>
<i>
<b>inML</b> is simple and compact markup
that could be easily transformed into <b>HTML</b>
</i>
<p>
<b>Key points:</b>
</p>
<ul>
<li>Easy text formatting</li>
<li>Traditional embedded <b>HTML</b> styles</li>
<li>Ability to add user styles</li>
</ul>
and looks like this (with predefined CSS styles):, (*4)
, (*5)
{
"require":{
"ptrofimov/inml":"*"
}
}
composer install
use \Inml\Text; use \Inml\Render\Html; $html = (new Html)->render(new Text($inml));
inML - inline markup language