Skip to content

Commit e4a544e

Browse files
committed
1.3.3
1 parent 5854e3e commit e4a544e

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
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.3
4+
*2024-05-08*
45
- Fixed characters around elements being erroneously padded with spaces.
56
- Fixed inline definition lists not being parsed.
67
- Fixed equal signs in named template arguments creating broken output.

package-lock.json

Lines changed: 2 additions & 10 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.2",
3+
"version": "1.3.3",
44
"description": "Compile wikitext to HTML: wikitext as a templating language.",
55
"main": "dist/index.js",
66
"scripts": {

src/compile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export function compile(dir: string = '.', config: Config = {}): void {
107107
if (!fs.existsSync(paths.dirname(outFilePath))) {
108108
fs.mkdirSync(paths.dirname(outFilePath));
109109
}
110-
const renderedHtml = formatter.render(html.replace(/(<\/\w+>) (\S)/g, '$1&#32;$2'));
110+
const renderedHtml = formatter.render(html.replace(/(<\/\w+>) +(\S)/g, '$1&#32;$2'));
111111
fs.writeFileSync(outFilePath, frontMatter + '\n' + renderedHtml, 'utf8');
112112

113113
// Move images

0 commit comments

Comments
 (0)