Psycojoker / prosopopee

a static website generator to make beautiful customizable pictures galleries that tell a story
http://prosopopee.readthedocs.org
GNU General Public License v3.0
323 stars 55 forks source link

Allow markdown text #103

Open JocelynDelalande opened 4 years ago

JocelynDelalande commented 4 years ago

I am working on allowing markdown-formatted text in title, sub_title, text and name texts of sections.

My first approach was to use a setting to allow choosing between markdown and HTML rendering, defaulting to HTML for backward compat.

But, as markdown also allows plain HTML, I am wondering about just making it the only and default rendering option (simplifying documentation and use).

The major drawback I can think about would be for people who wrote HTML text with blank lines in it, that would get meaning and produce <p> in output. IMHO, that is an acceptable break (major version bump to indicate that ?).

Not a proof of anything, but I compiled my own galleries with my markdown patch without any difference in output.

So, two questions :

beudbeud commented 4 years ago

All PRs are welcome :)

JocelynDelalande commented 4 years ago

Thanks :).

So, @beudbeud to be a bit more precise (and avoid useless work) : making markdown the default and only option seems OK to you ?

beudbeud commented 4 years ago

I'm okay for markdown if there aren't regression for people not use it.