mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-27 05:01:57 +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...
|
||||
_code: {
|
||||
text: '<pre wikiwords="no"><quote filter="quote-tags" src="."/></pre>' },
|
||||
//_edit: {
|
||||
_ed: {
|
||||
//_edit: {
|
||||
text:
|
||||
'<pre class="editor" '
|
||||
+'wikiwords="no" '
|
||||
@ -1316,7 +1316,7 @@ module.Settings = {
|
||||
Export: {
|
||||
text: '<button onclick="exportData()">Export</button>' },
|
||||
// XXX
|
||||
Settings: {
|
||||
Config: {
|
||||
text: '{}' },
|
||||
}
|
||||
|
||||
|
||||
@ -118,10 +118,10 @@ module.BaseParser = {
|
||||
// XXX do we need basic inline and block commets a-la lisp???
|
||||
COMMENT_PATTERN: RegExp('('+[
|
||||
// <!--[pwiki[ .. ]]-->
|
||||
'<!--\\[pwiki\\[(?<uncomment>.*)\\]\\]-->',
|
||||
'<!--\\[pwiki\\[(?<uncomment>.*?)\\]\\]-->',
|
||||
|
||||
// <pwiki-comment> .. </pwiki-comment>
|
||||
'<\\s*pwiki-comment[^>]*>.*<\\/\\s*pwiki-comment\\s*>',
|
||||
'<\\s*pwiki-comment[^>]*>.*?<\\/\\s*pwiki-comment\\s*>',
|
||||
// <pwiki-comment .. />
|
||||
'<\\s*pwiki-comment[^\\/>]*\\/>',
|
||||
].join('|') +')', 'smig'),
|
||||
|
||||
@ -58,6 +58,20 @@ pwiki.store.update('@pouch', {
|
||||
// XXX TEST...
|
||||
// XXX add filter tests...
|
||||
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({
|
||||
location: '/test/test',
|
||||
text: 'test', })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user