mirror of
https://github.com/flynx/pWiki.git
synced 2026-01-05 17:41:14 +00:00
tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
02ebc61a59
commit
0d2739e796
@ -1231,8 +1231,8 @@ module.System = {
|
|||||||
// XXX not sure if this is the right way to go...
|
// XXX not sure if this is the right way to go...
|
||||||
_code: {
|
_code: {
|
||||||
text: '<pre wikiwords="no"><quote filter="quote-tags" src="."/></pre>' },
|
text: '<pre wikiwords="no"><quote filter="quote-tags" src="."/></pre>' },
|
||||||
//_edit: {
|
|
||||||
_ed: {
|
_ed: {
|
||||||
|
//_edit: {
|
||||||
text:
|
text:
|
||||||
'<pre class="editor" '
|
'<pre class="editor" '
|
||||||
+'wikiwords="no" '
|
+'wikiwords="no" '
|
||||||
@ -1316,7 +1316,7 @@ module.Settings = {
|
|||||||
Export: {
|
Export: {
|
||||||
text: '<button onclick="exportData()">Export</button>' },
|
text: '<button onclick="exportData()">Export</button>' },
|
||||||
// XXX
|
// XXX
|
||||||
Settings: {
|
Config: {
|
||||||
text: '{}' },
|
text: '{}' },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -118,10 +118,10 @@ module.BaseParser = {
|
|||||||
// XXX do we need basic inline and block commets a-la lisp???
|
// XXX do we need basic inline and block commets a-la lisp???
|
||||||
COMMENT_PATTERN: RegExp('('+[
|
COMMENT_PATTERN: RegExp('('+[
|
||||||
// <!--[pwiki[ .. ]]-->
|
// <!--[pwiki[ .. ]]-->
|
||||||
'<!--\\[pwiki\\[(?<uncomment>.*)\\]\\]-->',
|
'<!--\\[pwiki\\[(?<uncomment>.*?)\\]\\]-->',
|
||||||
|
|
||||||
// <pwiki-comment> .. </pwiki-comment>
|
// <pwiki-comment> .. </pwiki-comment>
|
||||||
'<\\s*pwiki-comment[^>]*>.*<\\/\\s*pwiki-comment\\s*>',
|
'<\\s*pwiki-comment[^>]*>.*?<\\/\\s*pwiki-comment\\s*>',
|
||||||
// <pwiki-comment .. />
|
// <pwiki-comment .. />
|
||||||
'<\\s*pwiki-comment[^\\/>]*\\/>',
|
'<\\s*pwiki-comment[^\\/>]*\\/>',
|
||||||
].join('|') +')', 'smig'),
|
].join('|') +')', 'smig'),
|
||||||
|
|||||||
@ -58,6 +58,20 @@ pwiki.store.update('@pouch', {
|
|||||||
// XXX TEST...
|
// XXX TEST...
|
||||||
// XXX add filter tests...
|
// XXX add filter tests...
|
||||||
pwiki.pwiki
|
pwiki.pwiki
|
||||||
|
.update({
|
||||||
|
location: '/test/comments',
|
||||||
|
text: object.doc`
|
||||||
|
<!--[pWiki[ This text should be visible... ]]-->
|
||||||
|
|
||||||
|
<!--[pWiki[
|
||||||
|
This text should be visible too...
|
||||||
|
]]-->
|
||||||
|
|
||||||
|
<pwiki-comment>
|
||||||
|
And this should not be visible...
|
||||||
|
</pwiki-comment>
|
||||||
|
`,
|
||||||
|
})
|
||||||
.update({
|
.update({
|
||||||
location: '/test/test',
|
location: '/test/test',
|
||||||
text: 'test', })
|
text: 'test', })
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user