>
> FWIW, this is a well-known issue:
>
> While Markdown encourages[1] the use of line breaks to format (only) the
> source, GFM[2] argues that line breaks in the source should translate to
> line breaks in the output.
>
> Personally, I *strongly* prefer the former. However, I understand that
> in certain contexts, the latter can be preferable.
>
> Would it be possible for TW5 to support both variants - with the
> renderer being determined by the respective tiddler's content type?
>

Yes, that would work, and internally would be quite convenient. However I'm
reluctant to overload the content type in that way if it can be avoided,
because although it is an easy fix it would result in a proliferation of
content types if applied widely.

An alternative would to switch line break mode via a pragma at the top of a
tiddler, something like this:

\define tw-single-line-breaks() ignore

or

\define tw-single-line-breaks() break

The way that these definitions works means that the setting would be
inherited by any transcluded tiddlers.

There's definitely a place for those kinds of switches in TW5, but it feels
rather a last resort in this case because line break handling is so
fundamental to wikitext processing. The best alternative we have so far
doesn't seem sufficient: to introduce markup for explicit line breaks, and
new markup for a block containing explicit line breaks.

Best wishes

Jeremy


>
>
> -- F.
>
>
> [1] http://daringfireball.net/projects/markdown/syntax#p
> [2] http://github.github.com/github-flavored-markdown/
>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWikiDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tiddlywikidev?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


-- 
Jeremy Ruston
mailto:[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to