getting the code up to date...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2026-06-25 13:31:50 +03:00
parent 4fa71d8a89
commit 9611c30d0c
4 changed files with 29 additions and 17 deletions

2
v2/bootstrap.js vendored Executable file → Normal file

File diff suppressed because one or more lines are too long

View File

@ -4,30 +4,33 @@
"author": "Alex A. Naanou <alex.nanou@gmail.com>", "author": "Alex A. Naanou <alex.nanou@gmail.com>",
"license": "BSD", "license": "BSD",
"dependencies": { "dependencies": {
"@toast-ui/editor": "^3.2.0",
"any-date-parser": "^1.5.3",
"file-saver": "^2.0.5",
"flexsearch": "^0.7.43",
"glob": "*",
"idb-keyval": "^6.2.0",
"ig-actions": "*", "ig-actions": "*",
"ig-features": "*", "ig-features": "*",
"ig-object": "*", "ig-object": "*",
"ig-types": "^6.26.2", "ig-types": "*",
"jszip": "*",
"medium-editor": "^5.23.3",
"medium-editor-markdown": "^3.2.2",
"pouchdb": "^7.3.0",
"pouchdb-browser": "^7.3.0",
"requirejs": "*", "requirejs": "*",
"showdown": "^2.1.0" "uuid": "*",
"glob": "*",
"jszip": "*",
"any-date-parser": "*",
"file-saver": "*",
"flexsearch": "*",
"idb-keyval": "*"
}, },
"disabled-dependencies": { "disabled-dependencies": {
"peer": "*", "peer": "*",
"pouch-replicate-webrtc": "*", "pouch-replicate-webrtc": "*",
"pouchdb": "*", "pouchdb": "*",
"showdown": "*", "showdown": "*",
"xss": "*" "xss": "*",
"@toast-ui/editor": "*",
"medium-editor": "*",
"medium-editor-markdown": "*",
"pouchdb": "*",
"pouchdb-browser": "*",
"showdown": "*"
}, },
"scripts": { "scripts": {
"bootstrap": "node scripts/bootstrap.js" "bootstrap": "node scripts/bootstrap.js"

View File

@ -437,6 +437,14 @@ module.BaseParser = {
// normal value... // normal value...
yield value } }, yield value } },
// XXX do we need a pre-parse stage???
// - expand local macros
// - collect links
// - ...
ast: function*(...args){
yield* this.group(...args) },
// Expand macros... // Expand macros...
// //
// <ast> ::= [ <item>, .. ] // <ast> ::= [ <item>, .. ]

View File

@ -22,8 +22,9 @@ typeof(module) != "undefined"
// XXX add support for json... // XXX add support for json...
glob('bootstrap/**/*.@(tpl|md|css|html|txt)') new glob.Glob('bootstrap/**/*.@(tpl|md|css|html|txt)', {})
.on('match', function(path){ .stream()
.on('data', function(path){
var p = path var p = path
.replace('bootstrap/', '') .replace('bootstrap/', '')
.replace(/\.(json|txt|md|css|html|txt)/, '') .replace(/\.(json|txt|md|css|html|txt)/, '')