(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-203) was last changed on 23-Sep-2008 15:55 by YvesPiguet  

This page was created on 02-Sep-2006 18:22 by 82.48.229.92

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 11 added 2 lines
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.
Version Date Modified Size Author Changes ... Change note
203 23-Sep-2008 15:55 8.533 kB YvesPiguet to previous Dates in discussion pages please!
202 03-Jun-2008 13:21 8.332 kB 60.49.238.66 to previous | to last
201 25-Apr-2008 18:07 8.582 kB StephenDay to previous | to last answer
« This page (revision-203) was last changed on 23-Sep-2008 15:55 by YvesPiguet