mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-01-17 05:18:27 +01:00
Merge pull request #3477 from skyboyer/3476-data-notes-does-not-work-on-slide-level
Notes plugin: notes from data-notes attribute were not shown
This commit is contained in:
commit
eb01f8f3a5
@ -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';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user