added the wiki class attribute to the pre block generated from creole.
changed the style for the pre block just mentioned
This commit is contained in:
parent
5e8c9698d0
commit
0efa872e3a
@ -216,6 +216,10 @@ body {
|
|||||||
width: inherit;
|
width: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.content .mainarea pre.wiki {
|
||||||
|
white-space: pre-wrap;
|
||||||
|
}
|
||||||
|
|
||||||
.content .mainarea tt {
|
.content .mainarea tt {
|
||||||
/*
|
/*
|
||||||
padding: .1em .1em .1em .1em;
|
padding: .1em .1em .1em .1em;
|
||||||
|
@ -300,6 +300,7 @@ var Url = {
|
|||||||
br: { tag: 'br', regex: /\\\\/ },
|
br: { tag: 'br', regex: /\\\\/ },
|
||||||
|
|
||||||
preBlock: { tag: 'pre', capture: 2,
|
preBlock: { tag: 'pre', capture: 2,
|
||||||
|
attrs: { 'class': 'wiki' },
|
||||||
regex: /(^|\n)\{\{\{\n((.*\n)*?)\}\}\}(\n|$)/,
|
regex: /(^|\n)\{\{\{\n((.*\n)*?)\}\}\}(\n|$)/,
|
||||||
replaceRegex: /^ ([ \t]*\}\}\})/gm,
|
replaceRegex: /^ ([ \t]*\}\}\})/gm,
|
||||||
replaceString: '$1' },
|
replaceString: '$1' },
|
||||||
|
Loading…
Reference in New Issue
Block a user