Commits (2)
{
"name": "mfgames-writing-format",
"version": "1.0.1",
"version": "1.1.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......
{
"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",
......
......@@ -182,7 +182,7 @@ function loadContent(args: ContentArgs): Promise<ContentArgs> {
}
/**
* Loasd a direct image by wrapping a HTML file around it and then faking the
* Loads 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);
});
}
......