fix: fix render image

This commit is contained in:
fantasticit 2022-04-01 15:02:52 +08:00
parent 4c071a5573
commit 5a668a863b
1 changed files with 3 additions and 1 deletions

View File

@ -341,7 +341,9 @@ export function renderImage(state, node) {
if (isString(src) || isString(canonicalSrc)) { if (isString(src) || isString(canonicalSrc)) {
const quotedTitle = title ? ` ${state.quote(title)}` : ''; const quotedTitle = title ? ` ${state.quote(title)}` : '';
state.write(`![${state.esc(alt || '')}](${state.esc(canonicalSrc || src)}${quotedTitle})`); state.write(`![${state.esc(alt || '')}](${state.esc(canonicalSrc || src)}${quotedTitle})\n`);
state.write(`\n`);
state.ensureNewLine();
} }
} }