textile / php-textile

Textile markup language parser for PHP
https://textile-lang.com
Other
216 stars 44 forks source link

Alternative heading syntax – Markdown like #92

Closed adamkiss closed 10 years ago

adamkiss commented 11 years ago

Would be possible to include Markdown like syntax for headers? I think textile is better (and as simple) than markdown, but the 'hX' syntax always bugged, when explaining to clients, for instance.

Markdown's #{1;6} Heading syntax is much more intuitive (and easier to explain).


I would bring nothing else from MD, but the headings…

adamkiss commented 11 years ago

Yeah, I just realized this would clash with numeric lists, so…

netcarver commented 11 years ago

@adamkiss Thanks for bringing this up.

As you mention there is a potential clash with numeric lists using the leading #s from MD but it may be possible to bring over the h1 & h2 underlining versions via an MD-compatibility textplug in a future version giving access to...

Headings Like This
==================

And like this
-------------

Keeping this open so it stays on the radar.

eliph commented 11 years ago

In my opinion, Textile should be restricted to its basic syntactic rules that where laid out by Dean Allen ten years ago, and any enhancements should stick to these rules. They are easy to remember because they are logical as they are. Formerly, I was accustomed to Markdown also, and then I just replaced the Textile engine with the Markdown engine. This is easy and can be recommended to anyone who is more comfortable with Markdown.

The more features and rules are added to Textile, the more confusing it will become, and the greater the danger of introducing bugs and incompatibilities, not to speak of the maintainability of the code. Therefore I would strongly vote against introducing Markdown syntax into Textile.

netcarver commented 11 years ago

Hi Eliph. This is not going to become part of textile core.