File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Elastic.Markdown/Assets Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -119,15 +119,15 @@ export function initNav() {
119119 a . addEventListener ( 'click' , ( e ) => {
120120 e . preventDefault ( ) ;
121121 history . pushState ( null , '' , a . href ) ;
122-
122+ const markdownContentContainer = $ ( '.markdown-content' ) ;
123+ markdownContentContainer . innerHTML = 'loading...' ;
123124 // download .markdown-content from the href
124125 const url = a . href ;
125126 fetch ( url )
126127 . then ( response => response . text ( ) )
127128 . then ( text => {
128129 const doc = new DOMParser ( ) . parseFromString ( text , 'text/html' )
129130 const markdownContent = $ ( '.markdown-content' , doc ) ;
130- const markdownContentContainer = $ ( '.markdown-content' ) ;
131131 const toc = $ ( '#toc-nav' , doc ) ;
132132 const tocContainer = $ ( '#toc-nav' ) ;
133133 if ( toc && tocContainer ) {
You can’t perform that action at this time.
0 commit comments