Changes to asteriskdemo

root
root
5 months ago
Updated index.scroll
index.scroll
Changed around line 1
+ title Hello world
Changed around line 14: customAsteriskParser
- * This is my /it/ __custom__ *asterisk* parser.
+ * This is my __custom__ *asterisk* parser.
root
root
5 months ago
Updated index.scroll
index.scroll
Changed around line 1
- title Hello world
root
root
5 months ago
Updated index.scroll
index.scroll
Changed around line 1
- buildTxt
- title Hello world
-
- metaTags
- gazetteCss
- pageHeader
- printTitle
- mediumColumns 1
-
- customAsteriskParser
- extends abstractScrollParser
- crux *
- javascript
- compile() {return "⭐️⭐️" + this.content }
-
- * This is my /it/ __custom__ *asterisk* parser.
-
- pageFooter
+ buildHtml
+ buildTxt
+ title Hello world
+
+ metaTags
+ gazetteCss
+ pageHeader
+ printTitle
+ mediumColumns 1
+
+ customAsteriskParser
+ extends abstractScrollParser
+ crux *
+ javascript
+ compile() {return "⭐️⭐️" + this.content }
+
+ * This is my /it/ __custom__ *asterisk* parser.
+
+ pageFooter
root
root
5 months ago
Updated index.scroll
index.scroll
Changed around line 1
- buildHtml
- buildTxt
- title Hello world
-
- metaTags
- gazetteCss
- pageHeader
- printTitle
- mediumColumns 1
-
- customAsteriskParser
- extends abstractScrollParser
- crux *
- javascript
- compile() {return "⭐️⭐️" + this.content }
-
- * This is my /it/ __custom__ *asterisk* parser.
-
- pageFooter
+ buildTxt
+ title Hello world
+
+ metaTags
+ gazetteCss
+ pageHeader
+ printTitle
+ mediumColumns 1
+
+ customAsteriskParser
+ extends abstractScrollParser
+ crux *
+ javascript
+ compile() {return "⭐️⭐️" + this.content }
+
+ * This is my /it/ __custom__ *asterisk* parser.
+
+ pageFooter
root
root
5 months ago
Updated index.scroll
index.scroll
Changed around line 1
- buildHtml
- buildTxt
- title Hello world
-
- metaTags
- gazetteCss
- pageHeader
- printTitle
- mediumColumns 1
-
- * This is my /it/ __custom__ *asterisk* parser.
-
- pageFooter
+ buildHtml
+ buildTxt
+ title Hello world
+
+ metaTags
+ gazetteCss
+ pageHeader
+ printTitle
+ mediumColumns 1
+
+ customAsteriskParser
+ extends abstractScrollParser
+ crux *
+ javascript
+ compile() {return "⭐️⭐️" + this.content }
+
+ * This is my /it/ __custom__ *asterisk* parser.
+
+ pageFooter
root
root
5 months ago
Updated index.scroll
index.scroll
Changed around line 8: pageHeader
- * This is my ¦sdf¦ __custom__ *asterisk* parser.
+ * This is my /it/ __custom__ *asterisk* parser.
root
root
5 months ago
Updated index.scroll
index.scroll
Changed around line 1
- buildHtml
- buildTxt
- title Hello world
-
- metaTags
- gazetteCss
- pageHeader
- printTitle
- mediumColumns 1
-
- wrapsOnParser
- cruxFromId
- description Only turn on named wraps.
- example
- Hello *world*!
- wrapsOn bold
- extends abstractAftertextDirectiveParser
- catchAllCellType wrapNameCell
- javascript
- get shouldMatchAll() {
- return true
- }
- get wraps() {
- const wraps = [{delimiter: "¦", tag: "code", exclusive: true, name: "code"},{delimiter: "*", tag: "strong", name: "bold"}, {delimiter: "_", tag: "em", name: "italics"}]
- if (this.content)
- return wraps.filter(wrap => this.content.includes(wrap.name))
- return wraps
- }
- matchWholeLine = true
- getMatches(text) {
- const exclusives = []
- return this.wraps.map(wrap => this.runPattern(text, wrap, exclusives)).filter(i => i).flat()
- }
- runPattern(text, wrap, exclusives = []) {
- const {delimiter, tag, attributes} = wrap
- const escapedDelimiter = delimiter.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&")
- const pattern = new RegExp(`${escapedDelimiter}[^${escapedDelimiter}]+${escapedDelimiter}`, "g")
- const delimiterLength = delimiter.length
- return [...text.matchAll(pattern)].map(match => {
- const { index } = match
- const endIndex = index + match[0].length
- if (exclusives.some(exclusive => index >= exclusive[0] && index <= exclusive[1]))
- return undefined
- if (wrap.exclusive)
- exclusives.push([index, endIndex])
- return [
- { index, string: `<${tag + (attributes ? " " + attributes : "")}>`, endIndex, consumeStartCharacters: delimiterLength },
- { index: endIndex, endIndex, string: ``, consumeEndCharacters: delimiterLength }
- ]
- }).filter(i => i)
- }
-
- * This is my ¦sdf¦ __custom__ *asterisk* parser.
-
- pageFooter
+ buildHtml
+ buildTxt
+ title Hello world
+
+ metaTags
+ gazetteCss
+ pageHeader
+ printTitle
+ mediumColumns 1
+
+ * This is my ¦sdf¦ __custom__ *asterisk* parser.
+
+ pageFooter
root
root
5 months ago
Updated index.scroll
index.scroll
Changed around line 8: pageHeader
- customAsteriskParser
- extends wrapsOnParser
- crux *
+ wrapsOnParser
+ cruxFromId
+ description Only turn on named wraps.
+ example
+ Hello *world*!
+ wrapsOn bold
+ extends abstractAftertextDirectiveParser
+ catchAllCellType wrapNameCell
- compile() {return "⭐️⭐️" + this.content }
+ get shouldMatchAll() {
+ return true
+ }
+ get wraps() {
+ const wraps = [{delimiter: "¦", tag: "code", exclusive: true, name: "code"},{delimiter: "*", tag: "strong", name: "bold"}, {delimiter: "_", tag: "em", name: "italics"}]
+ if (this.content)
+ return wraps.filter(wrap => this.content.includes(wrap.name))
+ return wraps
+ }
+ matchWholeLine = true
+ getMatches(text) {
+ const exclusives = []
+ return this.wraps.map(wrap => this.runPattern(text, wrap, exclusives)).filter(i => i).flat()
+ }
+ runPattern(text, wrap, exclusives = []) {
+ const {delimiter, tag, attributes} = wrap
+ const escapedDelimiter = delimiter.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&")
+ const pattern = new RegExp(`${escapedDelimiter}[^${escapedDelimiter}]+${escapedDelimiter}`, "g")
+ const delimiterLength = delimiter.length
+ return [...text.matchAll(pattern)].map(match => {
+ const { index } = match
+ const endIndex = index + match[0].length
+ if (exclusives.some(exclusive => index >= exclusive[0] && index <= exclusive[1]))
+ return undefined
+ if (wrap.exclusive)
+ exclusives.push([index, endIndex])
+ return [
+ { index, string: `<${tag + (attributes ? " " + attributes : "")}>`, endIndex, consumeStartCharacters: delimiterLength },
+ { index: endIndex, endIndex, string: ``, consumeEndCharacters: delimiterLength }
+ ]
+ }).filter(i => i)
+ }
- * This is my __custom__ *asterisk* parser.
+ * This is my ¦sdf¦ __custom__ *asterisk* parser.
root
root
5 months ago
Updated index.scroll
index.scroll
Changed around line 9: printTitle
- extends abstractScrollParser
+ extends wrapsOnParser
root
root
5 months ago
Updated index.scroll
index.scroll
Changed around line 10: mediumColumns 1
- cruxFromId
+ crux *
root
root
5 months ago
Updated index.scroll
index.scroll
Changed around line 8: pageHeader
- customAsteriskParser2
- extends wrapsOnParser
- crux *
- javascript
- compile() {return "⭐️⭐️" + this.content }
-
root
root
5 months ago
Updated index.scroll
index.scroll
Changed around line 10: mediumColumns 1
- crux **
+ crux *
root
root
5 months ago
Updated index.scroll
index.scroll
Changed around line 8: pageHeader
+ customAsteriskParser2
+ extends wrapsOnParser
+ crux **
+ javascript
+ compile() {return "⭐️⭐️" + this.content }
+
- crux *
+ cruxFromId
root
root
5 months ago
Updated index.scroll
index.scroll
Changed around line 12: customAsteriskParser
- compile() {return "⭐️⭐️ " + this.content }
+ compile() {return "⭐️⭐️" + this.content }
root
root
5 months ago
Updated index.scroll
index.scroll
Changed around line 12: customAsteriskParser
- compile() {
- return "⭐️⭐️⭐️ " + this.content
- }
+ compile() {return "⭐️⭐️ " + this.content }
- * This is my custom *asterisk parser.
+ * This is my __custom__ *asterisk* parser.
root
root
5 months ago
Updated index.scroll
index.scroll
Changed around line 16: customAsteriskParser
- * This is my custom asterisk parser.
+ * This is my custom *asterisk parser.
root
root
5 months ago
Updated index.scroll
index.scroll
Changed around line 13: customAsteriskParser
- return "⭐️⭐️⭐️ " + this.getLine()
+ return "⭐️⭐️⭐️ " + this.content
root
root
5 months ago
Updated index.scroll
index.scroll
Changed around line 9: printTitle
+ extends abstractScrollParser
root
root
5 months ago
Updated index.scroll
index.scroll
Changed around line 2: buildHtml
- customAsteriskParser
- crux *
- javascript
- compile() {
- return "⭐️⭐️⭐️ " + this.getLine()
- }
-
- Welcome to my website.
+ customAsteriskParser
+ crux *
+ javascript
+ compile() {
+ return "⭐️⭐️⭐️ " + this.getLine()
+ }
root
root
5 months ago
Updated index.scroll
index.scroll
Changed around line 1
- buildHtml
- buildTxt
- title Hello world
-
- metaTags
- gazetteCss
- pageHeader
- printTitle
- mediumColumns 1
-
- Welcome to my website.
-
- pageFooter
+ buildHtml
+ buildTxt
+ title Hello world
+
+ customAsteriskParser
+ crux *
+ javascript
+ compile() {
+ return "⭐️⭐️⭐️ " + this.getLine()
+ }
+
+ metaTags
+ gazetteCss
+ pageHeader
+ printTitle
+ mediumColumns 1
+
+ Welcome to my website.
+
+ * This is my custom asterisk parser.
+
+ pageFooter
root
root
5 months ago
Initial commit
index.scroll
Changed around line 1
+ buildHtml
+ buildTxt
+ title Hello world
+
+ metaTags
+ gazetteCss
+ pageHeader
+ printTitle
+ mediumColumns 1
+
+ Welcome to my website.
+
+ pageFooter