Skip to content

Commit d0a610d

Browse files
committed
1.3.5
1 parent 6993b81 commit d0a610d

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

changelog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

3-
## Next
3+
## 1.3.5
4+
*2024-05-12*
45
- Changed output to no longer be prettified.
56
- Fixed spacing issues resulting from output prettification.
67
- Fixed a crash occurring when invalid dates are given to `#time`.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wikity",
3-
"version": "1.3.4",
3+
"version": "1.3.5",
44
"description": "Compile wikitext to HTML: wikitext as a templating language.",
55
"main": "dist/index.js",
66
"scripts": {

src/parse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ export function parse(data: string, config: Config = {}): Result {
377377
refs.push(refData);
378378
return `<sup class="refnote"><a id="cite-${refData.id}" class="ref" href="#ref-${refData.id}">[${refData.id}]</a></sup>`
379379
})
380-
.replace(re(r`< ref \s* name \s* = \s* ["']? ( [^>"']+ ) ["']? \s* (?: /> | > .* </ref> )`), (_, refname) => {
380+
.replace(re(r`< ref \s* name \s* = \s* ["']? ( [^>"']+ ) ["']? \s* (?: /> | > .*? </ref> )`), (_, refname) => {
381381
const ref = refs.find(ref => ref.name === refname);
382382
if (!ref) return _;
383383
ref.i++;

src/wiki.css.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default String.raw`
2-
body {font-family: sans-serif; margin: 4em; max-width: 1000px; background: #eee;}
2+
body {font-family: sans-serif; margin: auto; max-width: 1000px; background: #eee;}
33
main {margin: 3em -1em; background: #fff; padding: 1em;}
44
h1, h2 {margin-bottom: 0.6em; font-weight: normal; border-bottom: 1px solid #a2a9b1;}
55
ul, ol {margin: 0.3em 0 0 1.6em; padding: 0;}
@@ -29,6 +29,6 @@ a.redlink:visited {color: #b44;}
2929
#page+toc ol {margin: 0 0 0 1.3em;}
3030
3131
#infobox {float: right; clear: right; margin: 0 0 1em 1em; width: 300px; padding: 2px; border: 1px solid #CCC; overflow: auto; font-size: 90%;}
32-
#infobox tr:first-child :first-child {padding: 10px 10px 0; text-align: center; font-weight: bold; font-size: 120%;}
32+
#infobox tr:first-child :first-child {padding: 10px; text-align: center; font-weight: bold; font-size: 120%;}
3333
#infobox th {padding-left: 10px; text-align: left;}
3434
`

0 commit comments

Comments
 (0)