Notes plugin: notes from data-notes attribute were not shown
This commit is contained in:
parent
07a6cf1249
commit
cd948d4136
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ const Plugin = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Look for notes defined in an aside element
|
// Look for notes defined in an aside element
|
||||||
if( notesElements ) {
|
if( notesElements && notesElements.length ) {
|
||||||
messageData.notes = Array.from(notesElements).map( notesElement => notesElement.innerHTML ).join( '\n' );
|
messageData.notes = Array.from(notesElements).map( notesElement => notesElement.innerHTML ).join( '\n' );
|
||||||
messageData.markdown = notesElements[0] && typeof notesElements[0].getAttribute( 'data-markdown' ) === 'string';
|
messageData.markdown = notesElements[0] && typeof notesElements[0].getAttribute( 'data-markdown' ) === 'string';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue