0.1.1: Another Minor Formatting Update
* monospace now gets same treatment as urls when prefixed with ( or ['s * Added terminating newline to files that were modified in 0.1.0, since i forgot last time
This commit is contained in:
parent
95d0a3a106
commit
f51418b79d
|
@ -62,14 +62,15 @@ function format(data, name) {
|
||||||
/(\t*)(<(?:code|a href=".*")>)\n\t*(.*)\n\t*(<\/(?:code|a)>)/g,
|
/(\t*)(<(?:code|a href=".*")>)\n\t*(.*)\n\t*(<\/(?:code|a)>)/g,
|
||||||
"$1$2$3$4"
|
"$1$2$3$4"
|
||||||
)
|
)
|
||||||
.replace( /* link prefix spacing fix for ( and [ */
|
.replace( /* multitag prefix fix for ( and [ */
|
||||||
/([(\[])\n\t*(<a href=".*">.*<\/a>)/g,
|
/([(\[])\n\t*(<(?:code|a href=".*")>.*<\/(?:code|a)>)/g,
|
||||||
"$1$2"
|
"$1$2"
|
||||||
)
|
)
|
||||||
.replace( /* multitag suffix fix for special characters. */
|
.replace( /* multitag suffix fix for special characters. */
|
||||||
/(<\/(?:a|code)>)\n\t*([.)\];:,])/g,
|
/(<\/(?:a|code)>)\n\t*([.)\];:,])/g,
|
||||||
"$1$2"
|
"$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,
|
/(\w+)(<[a-zA-Z]\w*>)/g,
|
||||||
"$1 $2"
|
"$1 $2"
|
||||||
);
|
);
|
||||||
|
@ -110,4 +111,4 @@ module.exports = {"markup": markup, "format": format};
|
||||||
if(require.main === module) {
|
if(require.main === module) {
|
||||||
let content = markup(Filesystem.readFileSync(Process.argv[2]).toString());
|
let content = markup(Filesystem.readFileSync(Process.argv[2]).toString());
|
||||||
Filesystem.writeFileSync(Process.argv[3], format(content, Path.basename(Process.argv[3], ".html").replace(/_/g, " ")));
|
Filesystem.writeFileSync(Process.argv[3], format(content, Path.basename(Process.argv[3], ".html").replace(/_/g, " ")));
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "yiki",
|
"name": "yiki",
|
||||||
"version": "0.1.0",
|
"version": "0.1.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "yiki",
|
"name": "yiki",
|
||||||
"version": "0.1.0",
|
"version": "0.1.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@liquify/prettify": "^0.5.5-beta.1",
|
"@liquify/prettify": "^0.5.5-beta.1",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "yiki",
|
"name": "yiki",
|
||||||
"version": "0.1.0",
|
"version": "0.1.1",
|
||||||
"description": "The yellows111 wiki system",
|
"description": "The yellows111 wiki system",
|
||||||
"main": "compile.js",
|
"main": "compile.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -68,4 +68,4 @@ module.exports = function(fileList, filter) {
|
||||||
makeSitemapChunk(file, filter);
|
makeSitemapChunk(file, filter);
|
||||||
}
|
}
|
||||||
return renderSiteMap();
|
return renderSiteMap();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue