mirror of https://github.com/fantasticit/think.git
fix: fix render image
This commit is contained in:
parent
4c071a5573
commit
5a668a863b
|
@ -341,7 +341,9 @@ export function renderImage(state, node) {
|
|||
if (isString(src) || isString(canonicalSrc)) {
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue