On May 17, 9:21 am, Massimo Di Pierro <[email protected]>
wrote:
> Why? I think using whitespaces in wiki syntax is bad because they are
> invisible.
>
> On May 17, 1:34 am, Tom Atkins <[email protected]> wrote:
> > Two spaces at the end of a line makes a new line in Markdown... would it be
> > possible to have the same behavior in Markmin?
Regardless of the syntax used, there does seem to be an omission in
markmin, in that you cannot easily insert a <br> tag into a
paragraph. There are legitimate reasons for mixing double and single
space that cannot (as far as I know) be handled by CSS. See the haiku
example earlier in the discussion for one example.
The workarounds suggested (using custom tags) are not end-user
friendly. Typing ``1``:br to insert <br/> into the final HTML goes
against the philosophy of a markup language, which is to make it easy
to use. I can see using custom tags for domain specific tags, but for
something as basic as a line break?
I'd really like to see markmin add something for line breaks. If you
don't like double spaces (and I can understand why), what about double
tilde characters?
For example, the current line 257 in markmin2html.py reads:
(re.compile('\n\s+\n'),'\n\n')]
Changing that and adding a new line 258 like this:
(re.compile('\n\s+\n'),'\n\n'),
(re.compile("\~\~"),'<br/>')]
Causes double tilde characters to generate a <br/> tag.
I'm not enough of a regular expression person to know if this breaks
something else, but it seems easy enough for someone who is an expert
to add the feature in a way that's safe.