Differences From:
File
src/creoleparser.c
part of check-in
[7a39dde24b]
- Clean up and merge updates from trunk
by
robert on
2009-09-26 08:17:33.
[view]
To:
File
src/creoleparser.c
part of check-in
[cacb8db398]
- Minor fixes to creole
by
robert on
2009-09-26 14:33:22.
[view]
@@ -363,9 +363,9 @@
int count = p->iend - p->icursor - 6;
while (count--){
if (s[0]=='}' && s[1]=='}' && s[2]=='}' && s[3]!='}'){
- blob_appendf(p->iblob, "<tt style='background:oldlace'>%s</tt>", htmlize(p->icursor + 3, s - p->icursor-3));
+ blob_appendf(p->iblob, "<tt class='creole-inline-nowiki'>%s</tt>", htmlize(p->icursor + 3, s - p->icursor-3));
p->icursor = s + 3;
return 1;
}
s++;
@@ -387,9 +387,9 @@
int count = p->iend - p->icursor - 4;
while (count--){
if (s[0]=='}' && s[1]=='}'){
if (!bar) bar = p->icursor + 2;
- blob_appendf(p->iblob, "<span style='color:green;border:1px solid green;'>%s</span>", htmlize(bar, s - bar ));
+ blob_appendf(p->iblob, "<span class='creole-noimage'>%s</span>", htmlize(bar, s - bar ));
p->icursor = s + 2;
return 1;
}
if (!bar && s[0]=='|') bar=s+1;
@@ -408,11 +408,10 @@
char *s = p->icursor + 2;
int count = p->iend - p->icursor - 3;
while (count--){
- blob_appendf(p->iblob, "|~%s|", s,2 );
- if (s[0]=='>' && s[1]=='>'){
- blob_appendf(p->iblob, "<span style='color:red;border:1px solid red;'>%s</span>", htmlize(p->icursor, s - p->icursor + 2));
+ if (s[0]=='>' && s[1]=='>'){
+ blob_appendf(p->iblob, "<span class='creole-nomacro'>%s</span>", htmlize(p->icursor, s - p->icursor + 2));
p->icursor = s + 2;
return 1;
}
s++;
@@ -740,9 +739,9 @@
}
if (node->kind & KIND_NO_WIKI_BLOCK){
blob_appendf(p->iblob,
- "\n<blockquote style='background:oldlace'><pre>%s</pre></blockquote>\n",
+ "\n<pre class='creole-block-nowiki'>%s</pre>\n",
htmlize( node->start, node->end - node->start)
);
}
}