Amaury / SkrivMarkup

Interpreter of the Skriv Markup Language.
GNU Lesser General Public License v2.1
25 stars 3 forks source link

fix #12: Allow writer to specify an identifier to a given title #13

Closed marmotz closed 11 years ago

marmotz commented 11 years ago

Source

=title1
=title2=
=title3=newtitle
=title4\=nonewtitle
=title5=new title

Generated

<h1 id="title1">title1</h1>
<h1 id="title2">title2</h1>
<h1 id="newtitle">title3</h1>
<h1 id="title4-nonewtitle">title4=nonewtitle</h1>
<h1 id="new-title">title5</h1>
Amaury commented 11 years ago

Thank you. In fact, I'll refuse your pull request (first one!), just because I rewrote the Title.php file in a simpler manner. I kept your modifications in Config.php.

marmotz commented 11 years ago

ok :)