Skip to content

Commit

Permalink
1.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Nixinova committed May 11, 2024
1 parent 6993b81 commit d0a610d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## Next
## 1.3.5
*2024-05-12*
- Changed output to no longer be prettified.
- Fixed spacing issues resulting from output prettification.
- Fixed a crash occurring when invalid dates are given to `#time`.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wikity",
"version": "1.3.4",
"version": "1.3.5",
"description": "Compile wikitext to HTML: wikitext as a templating language.",
"main": "dist/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ export function parse(data: string, config: Config = {}): Result {
refs.push(refData);
return `<sup class="refnote"><a id="cite-${refData.id}" class="ref" href="#ref-${refData.id}">[${refData.id}]</a></sup>`
})
.replace(re(r`< ref \s* name \s* = \s* ["']? ( [^>"']+ ) ["']? \s* (?: /> | > .* </ref> )`), (_, refname) => {
.replace(re(r`< ref \s* name \s* = \s* ["']? ( [^>"']+ ) ["']? \s* (?: /> | > .*? </ref> )`), (_, refname) => {
const ref = refs.find(ref => ref.name === refname);
if (!ref) return _;
ref.i++;
Expand Down
4 changes: 2 additions & 2 deletions src/wiki.css.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default String.raw`
body {font-family: sans-serif; margin: 4em; max-width: 1000px; background: #eee;}
body {font-family: sans-serif; margin: auto; max-width: 1000px; background: #eee;}
main {margin: 3em -1em; background: #fff; padding: 1em;}
h1, h2 {margin-bottom: 0.6em; font-weight: normal; border-bottom: 1px solid #a2a9b1;}
ul, ol {margin: 0.3em 0 0 1.6em; padding: 0;}
Expand Down Expand Up @@ -29,6 +29,6 @@ a.redlink:visited {color: #b44;}
#page+toc ol {margin: 0 0 0 1.3em;}

#infobox {float: right; clear: right; margin: 0 0 1em 1em; width: 300px; padding: 2px; border: 1px solid #CCC; overflow: auto; font-size: 90%;}
#infobox tr:first-child :first-child {padding: 10px 10px 0; text-align: center; font-weight: bold; font-size: 120%;}
#infobox tr:first-child :first-child {padding: 10px; text-align: center; font-weight: bold; font-size: 120%;}
#infobox th {padding-left: 10px; text-align: left;}
`

0 comments on commit d0a610d

Please sign in to comment.