waibu 1.0.12 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ function unescapeBlock (content, start, end, startReplacer, endReplacer) {
2
+ const { extractText } = this.app.bajo
3
+ const { result } = extractText(content, start, end)
4
+ if (result.length === 0) return content
5
+ const unescaped = this.unescape(result)
6
+ const token = `${start}${result}${end}`
7
+ const replacer = `${startReplacer}${unescaped}${endReplacer}`
8
+ const block = content.replaceAll(token, replacer)
9
+ return unescapeBlock.call(this, block, start, end, startReplacer, endReplacer)
10
+ }
11
+
12
+ export default unescapeBlock
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Web Framework for Bajo",
5
5
  "main": "index.js",
6
6
  "scripts": {