mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-21 02:21:40 +00:00
tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
9f95176ad1
commit
138322e0c0
2
bootstrap.js
vendored
2
bootstrap.js
vendored
File diff suppressed because one or more lines are too long
@ -163,7 +163,8 @@ Arguments:
|
||||
|
||||
<pwiki-comment>
|
||||
- [bootstrap css](bootstrap/Templates/_css.html)
|
||||
</pwiki-comment> <!--[pWiki[
|
||||
</pwiki-comment>
|
||||
<!--[pWiki[
|
||||
[Templates/\_css] / [bootstrap css](bootstrap/Templates/_css.html):
|
||||
```
|
||||
@source(Templates/_css)
|
||||
@ -181,9 +182,10 @@ Each new occurrence of a name will change slot content.
|
||||
**Example:**
|
||||
|
||||
<pwiki-comment>
|
||||
- [bootstrap view](bootstrap/Templates/_view.html):
|
||||
- [bootstrap edit](bootstrap/Templates/_edit.html):
|
||||
</pwiki-comment> <!--[pWiki[
|
||||
- [bootstrap view](bootstrap/Templates/_view.html)
|
||||
- [bootstrap edit](bootstrap/Templates/_edit.html)
|
||||
</pwiki-comment>
|
||||
<!--[pWiki[
|
||||
[Templates/\_view] / [bootstrap view](bootstrap/Templates/_view.html):
|
||||
```
|
||||
@source(Templates/_view)
|
||||
@ -226,12 +228,13 @@ of `macro` matches no pages.
|
||||
|
||||
<pwiki-comment>
|
||||
- [bootstrap pages](bootstrap/Templates/pages.html):
|
||||
</pwiki-comment> <!--[pWiki[
|
||||
</pwiki-comment>
|
||||
<!-- [pWiki[
|
||||
[Templates/pages] / [bootstrap pages](bootstrap/Templates/pages.html):
|
||||
```
|
||||
@source(Templates/pages)
|
||||
```
|
||||
]]-->
|
||||
]] -->
|
||||
|
||||
|
||||
<!-- @filter(markdown) -->
|
||||
|
||||
7
wiki.js
7
wiki.js
@ -579,8 +579,11 @@ var macro = {
|
||||
|
||||
// conditional comment...
|
||||
if(e.nodeType == e.COMMENT_NODE
|
||||
&& /^<!--\[pWiki\[(.|\n)*\]\]-->$/.test(text)){
|
||||
text = text.slice(11, -5)
|
||||
&& /^<!--\s*\[pWiki\[(.|\n)*\]\]\s*-->$/.test(text)){
|
||||
text = text
|
||||
.replace(/^<!--\s*\[pWiki\[/, '')
|
||||
.replace(/\]\]\s*-->$/, '')
|
||||
console.log('!!!!', text)
|
||||
}
|
||||
|
||||
$(e).replaceWith(_parseText(context, text, macro))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user