image-example
John McLear 2021-01-14 17:02:43 +00:00
parent b876e2dfe0
commit d9ca1efd4f
2 changed files with 7 additions and 11 deletions

View File

@ -394,11 +394,10 @@ const makeContentCollector = function (
const styl = dom.nodeAttr(node, 'style');
const cls = dom.nodeAttr(node, 'class');
// clear to avoid pollution of trailing blank lines after lines with attributes
// during import
if (state.lineAttributes) {
delete state.lineAttributes;
state.lineAttributes = {};
// clear to avoid pollution of trailing blank lines after image lines
// with attributes during import
if (state.lineAttributes && state.lineAttributes.img) {
delete state.lineAttributes.img;
}
if (tname === 'img') {
@ -420,7 +419,6 @@ const makeContentCollector = function (
// be present in the line itself, not in any attributes of a line..
// uncommenting the below will make duplicate images.. :)
if (state.lineAttributes) delete state.lineAttributes;
console.warn("state", state);
this.breakLine = true;
const tvalue = dom.nodeAttr(node, 'value');
const induceLineBreak = hooks.callAll('collectContentLineBreak', {

File diff suppressed because one or more lines are too long