diff --git a/compile.js b/compile.js index f179023..54b07c7 100644 --- a/compile.js +++ b/compile.js @@ -62,14 +62,15 @@ function format(data, name) { /(\t*)(<(?:code|a href=".*")>)\n\t*(.*)\n\t*(<\/(?:code|a)>)/g, "$1$2$3$4" ) - .replace( /* link prefix spacing fix for ( and [ */ - /([(\[])\n\t*(.*<\/a>)/g, + .replace( /* multitag prefix fix for ( and [ */ + /([(\[])\n\t*(<(?:code|a href=".*")>.*<\/(?:code|a)>)/g, "$1$2" ) .replace( /* multitag suffix fix for special characters. */ /(<\/(?:a|code)>)\n\t*([.)\];:,])/g, "$1$2" - ).replace( /* fix tag attached to word and not whitespace */ + ) + .replace( /* fix tag attached to word and not whitespace */ /(\w+)(<[a-zA-Z]\w*>)/g, "$1 $2" ); @@ -110,4 +111,4 @@ module.exports = {"markup": markup, "format": format}; if(require.main === module) { let content = markup(Filesystem.readFileSync(Process.argv[2]).toString()); Filesystem.writeFileSync(Process.argv[3], format(content, Path.basename(Process.argv[3], ".html").replace(/_/g, " "))); -} \ No newline at end of file +} diff --git a/package-lock.json b/package-lock.json index 8dd2e16..bf44556 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "yiki", - "version": "0.1.0", + "version": "0.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "yiki", - "version": "0.1.0", + "version": "0.1.1", "license": "MIT", "dependencies": { "@liquify/prettify": "^0.5.5-beta.1", diff --git a/package.json b/package.json index d225799..e52507e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "yiki", - "version": "0.1.0", + "version": "0.1.1", "description": "The yellows111 wiki system", "main": "compile.js", "scripts": { diff --git a/sitemap-gen.js b/sitemap-gen.js index ae7b5e6..d121dbc 100644 --- a/sitemap-gen.js +++ b/sitemap-gen.js @@ -68,4 +68,4 @@ module.exports = function(fileList, filter) { makeSitemapChunk(file, filter); } return renderSiteMap(); -} \ No newline at end of file +} diff --git a/ymake.js b/ymake.js index 122287f..ccdaf9a 100644 --- a/ymake.js +++ b/ymake.js @@ -78,4 +78,4 @@ Filesystem.writeFileSync(Path.normalize(BUILD_DIR+"/sitemap.xml"), Path.normalize(SRC_DIRS) ) ); -console.log(`SMAP: ${Path.normalize(BUILD_DIR+"/sitemap.xml")}`); \ No newline at end of file +console.log(`SMAP: ${Path.normalize(BUILD_DIR+"/sitemap.xml")}`);