(anonymous guest) (logged out)

Copyright (C) by the contributors. Some rights reserved, license BY-SA.

Sponsored by the Wiki Symposium and the Nuveon GmbH.

 

Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-43) was last changed on 26-Sep-2007 09:06 by ChuckSmith  

This page was created on 29-Aug-2006 01:46 by 85.221.141.46

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 155 added 19 lines
---------
== 2007-01-23 How to handle invalid bold/italic
[[WankerRoot]]: Hi there, the [[Creole0.3]] specs says that such bold/italic mixes are "unacceptable": {{{ //**bold-italic//**}}}. But - how shall the interpreter handle it? I was unsure so I decided for [[http://www.daemon.de/PodWiki|PodWiki]] to correct the invalid code and render it anyhow, [[http://www.daemon.de/CreoleWhat|Here is how it looks]]. My question is: is this the intended way to handle this? Any comments? - kind regards.
RadomirDopieralski: I don't think there is one and only good one way of handling such malformed markup -- and I think that different parsers will handle it differently. The important thing to remember is to never just ignore characters and eat them silently. So there are a few options: 1) Ignore the markup and display the characters verbatim, indicating this way that something is wrong with them, 2) First "{{{//}}}" starts italics, first "{{{**}}}" starts bold, then there is the text "{{{bold-italic}}}", then: 2.1) second "{{{//}}}" ends both the bold and the italic, second "{{{**}}}" starts a new bold span, that ends with the end of paragraph, 2.2) second "{{{//}}}" is treated as normal text (as there is no active italic span to close), second "{{{**}}}" closes the bold span, the rest of text is italic until the end of paragraph. 3a) only "{{{//}}}" are treated as markup, "{{{**}}}" is treated as normal text, 3b) the other way around, only "{{{**}}}" are treated as markup, "{{{//}}}" is treated as normal text, 4) your parser uses some heuristics and properly guesses what the user meant. To my understanding of the [Goals], especially __there is no wrong way to implement Creole__, each of these approaches is correct.
----
I know this is almost decided markup... but I'm not yet 100% sure we should discard email-style emphasis, like in [[Crossmark]]. I mean, using single slashes or stars instead of double. That's more readable, more intuitive and widespread. If we introduce a way to escape slashes and stars, then I don't think it will conflict seriously with normal text.
I know this option (single slashes and stars) has problems. I would just like to hear others' opinions.
-- MicheleTomaiuolo, 2007-02-07
I know Oddmuse accepts both single and double characters for bold and italics, so I would say that is optional. Again, ExtensibleByOmission.
-- ChuckSmith, 2007-Feb-07
Version Date Modified Size Author Changes ... Change note
43 26-Sep-2007 09:06 13.375 kB ChuckSmith to previous restore
42 26-Sep-2007 01:00 13.415 kB 218.58.136.4 to previous | to last
41 26-Sep-2007 00:59 13.404 kB 59.45.211.51 to previous | to last
« This page (revision-43) was last changed on 26-Sep-2007 09:06 by ChuckSmith