inem / hamdown

[WIP] Next generation template language for fans of Haml and Markdown
MIT License
111 stars 4 forks source link

Syntax duplication #1

Closed sidmani closed 6 years ago

sidmani commented 6 years ago

According to the spec, a level-2 header could be either:
## Header
or

%h2
    Header

Syntax duplication is a generally confusing for the end-user, so I think something like ##.f2.helvetica could work better. Thoughts?

I'm interested in this because I maintain Anodize, which is a static site generator that currently uses markdown + YAML + liquid templates, and a better language could be useful.

inem commented 6 years ago

I would leave both options. Because the idea is to be able to use both HAML and Markdown within one markup language, and not to invent a new flavor of Markdown.

I personally would use ## notation for a static content, and HAML syntax %h2 for parts being generated with Ruby.

sidmani commented 6 years ago

I see. I might write a language of my own then 😁
I think the critical thing is to make HTML classes and tags more accessible in markdown; integrating variables and things like that seems to be more in the scope of a templating language.