Skip to content

Commit

Permalink
Merge pull request #3477 from skyboyer/3476-data-notes-does-not-work-…
Browse files Browse the repository at this point in the history
…on-slide-level

Notes plugin: notes from data-notes attribute were not shown
  • Loading branch information
hakimel authored Sep 19, 2023
2 parents 07a6cf1 + cd948d4 commit eb01f8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/notes/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const Plugin = () => {
}

// 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.markdown = notesElements[0] && typeof notesElements[0].getAttribute( 'data-markdown' ) === 'string';
}
Expand Down

0 comments on commit eb01f8f

Please sign in to comment.