(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-15) was last changed on 15-Sep-2008 03:17 by StephenDay  

This page was created on 28-Apr-2008 13:41 by Isonomia

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 33 changed one line
- [[Isonomia]] ~~~~
-- [[Isonomia]]
I'm implementing the Creole spec for Ruby and came across the same issue.
It makes sense to me that by default, HTML is escaped; however, strictly no HTML is not pragmatic. I'd like an "allow HTML" block. Using triple braces denotes a "nowiki" block and perhaps we could use something similar (as it feels like a similar idea) like triple brackets "(((" to denote an "html" block.
{{{
(((
<b>bold</b> works here
)))
but <b>bold</b> does not work here but (((<b>works here</b>)))
}}}
Note that it can work "block" or "inline". I can't think of any situation where an accidental triple bracketing would occur. The only situations where this might happen at all is in code, but my guess is this would be triple braced ~{{{}}} for code anyways.
-- [[SunnyHirai]], 2008-Jun-11
One way to incorporate HTML into an implementation could be through a macro:
{{{
<<html>>
<b>bold</b> works here
<</html>>
but <b>bold</b> does not work here but <<html>><b>works here</b><</html>>
}}}
This is the direction I've been going with [[http://creoleparser.googlepages.com|Creoparser.py]]. I've made a little tutorial about its macro support [[http://creoleparserwiki.appspot.com/pages/HTMLMacroExample|here]].
-- [[StephenDay]], 2008-Jun-11
A similar way -- maybe more consistent with creole -- would be to simply double html's delimiters : {{<...> --> <<...>>}}
{{{
Thus <b>this is regular text</b> while <<b>>this is bold text<</b>>.
}}}
This double marking means "I intentionaly insert html code".
The parser should then :
* Escape undoubled html markup.
* Then "simplify" {{{<< to < and >> to >}}}.
Which seems rather clear.
But: there is a imho //major// disadvantage in letting html codable in creole source text : which is that this code is not known by the average user/editor, not even specified by creole's standard, and above all not designed to be easily readable (legible?).
As a consequence, it will highly confuse the people to whom precisely creole (and most wiki language) are targeted. Is that not a basic contradiction ?
Also thinks at all the pretentious html-coders that may -- and will -- use html for the sake of their ego. Either adding features others can't code, or even using html rather than creole tags.
So the Q : is it worth letting html in?
[[spir]] 15-aug-08
spir,
If double angle brackets are used for extensions, then the implementation would be free to use them in any way, including as you suggest for html. But if this html idiom became part of creole, than I think (real) extensions would need to use something other than double angle brackets. :-)
-- [[StephenDay]], 2008-Sept-15
Version Date Modified Size Author Changes ... Change note
15 15-Sep-2008 03:17 5.543 kB StephenDay to previous comment added
14 15-Sep-2008 01:17 5.195 kB spir to previous | to last worth adding html ?
13 08-Aug-2008 17:24 4.132 kB 220.160.100.84 to previous | to last
12 08-Aug-2008 17:23 4.179 kB 220.160.100.84 to previous | to last
11 12-Jun-2008 13:41 4.132 kB StephenDay to previous | to last comment about HTML
10 12-Jun-2008 13:40 4.107 kB StephenDay to previous | to last comment about HTML
9 12-Jun-2008 09:08 3.655 kB 24.82.163.104 to previous | to last
8 16-May-2008 14:05 2.863 kB Isonomia to previous | to last
7 29-Apr-2008 09:52 2.626 kB YvesPiguet to previous | to last Escaping special character in output
6 28-Apr-2008 22:21 2.113 kB Isonomia to previous | to last
5 28-Apr-2008 22:19 2.08 kB Isonomia to previous | to last
4 28-Apr-2008 15:20 1.363 kB YvesPiguet to previous | to last Reply
3 28-Apr-2008 14:09 0.942 kB Isonomia to previous | to last
2 28-Apr-2008 13:42 0.924 kB Isonomia to previous | to last
1 28-Apr-2008 13:41 0.922 kB Isonomia to last
« This page (revision-15) was last changed on 15-Sep-2008 03:17 by StephenDay