Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
mfgames-writing
mfgames-writing-format-js
Compare Revisions
v1.0.1...v1.1.0
Commits (2)
Fixed a problem with italics before the end of a double quote reversing the fancy quote.
· 315bf4e2
Dylan R. E. Moonfire
authored
Jun 17, 2018
315bf4e2
1.1.0
· 0cd4c18c
Dylan R. E. Moonfire
authored
Jun 17, 2018
0cd4c18c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
package-lock.json
package-lock.json
+1
-1
package.json
package.json
+1
-1
src/content.ts
src/content.ts
+5
-1
No files found.
package-lock.json
View file @
0cd4c18c
{
"name"
:
"mfgames-writing-format"
,
"version"
:
"1.
0.1
"
,
"version"
:
"1.
1.0
"
,
"lockfileVersion"
:
1
,
"requires"
:
true
,
"dependencies"
:
{
...
...
package.json
View file @
0cd4c18c
{
"name"
:
"mfgames-writing-format"
,
"version"
:
"1.
0.1
"
,
"version"
:
"1.
1.0
"
,
"description"
:
"A command-line framework for formatting books into a variety of formats."
,
"repository"
:
{
"type"
:
"git"
,
...
...
src/content.ts
View file @
0cd4c18c
...
...
@@ -182,7 +182,7 @@ function loadContent(args: ContentArgs): Promise<ContentArgs> {
}
/**
* Loa
s
d a direct image by wrapping a HTML file around it and then faking the
* Load
s
a direct image by wrapping a HTML file around it and then faking the
* results.
*/
function
loadContentImage
(
content
:
ContentArgs
):
Promise
<
ContentArgs
>
{
...
...
@@ -478,6 +478,9 @@ function renderContentMarkdown(content: ContentArgs): Promise<ContentArgs> {
// that case.
html
=
html
.
replace
(
/—“/g
,
"
—”
"
);
// We also have a problem with italics at the end of quotes.
html
=
html
.
replace
(
/<
\/
em>“/g
,
"
</em>”
"
);
// Markdown has an interesting quirk that a "break" is actually a
// backslash followed by a space. However, trailing spaces are difficult
// to work with when you use EditorConfig to remove trailing them
...
...
@@ -503,6 +506,7 @@ function renderContentMarkdown(content: ContentArgs): Promise<ContentArgs> {
// Set the content and resolve this promise.
content
.
text
=
html
;
resolve
(
content
);
});
}
...
...