@@ -237,31 +237,33 @@ export default {
237
237
// Empty note
238
238
if ( ! inote .content ) return " "
239
239
240
- // === note Ref === //
241
- // let has_right_parenthesis = inote.content.indexOf("))") !== -1
242
- // let has_left_parenthesis = inote.content.indexOf("((") !== -1
243
- // let has_both = has_left_parenthesis && has_right_parenthesis
240
+ // === no Ref === //
241
+ let ref = ilse .notes .get_references ( inote .content ) // TODO: Make this a notes function
242
+ if ( ! ref ) return ilse .markdown .render ( inote .content ) // No note references, normal markdown.
244
243
245
- let ref = ilse . utils . get_note_reference ( inote . content )
244
+ // === Refs === //
246
245
247
- // No note references, normal markdown.
248
- if ( ! ref ) return ilse .markdown .render ( inote .content )
246
+ let html = ilse .markdown .get_blockquote ( inote .content )
247
+ printf ( " html -> " , html )
248
+ return html
249
249
250
- // The content has references
251
- let notes = ilse .notes .query ( ref )
252
- let final = inote .content + " \n\t "
253
- for ( const note of notes ) {
254
-
255
- if ( ! note ) {
256
- final += ` \n > ERROR: Could not find note: ${ ref} `
250
+ /*
251
+ let text = ilse.notes.reference( inote.content )
252
+ let chunks = text.split("\n")
253
+
254
+ printf( "chunks -> ", chunks )
255
+ let final = "<blockquote>"
256
+ for( const [index, chunk] of chunks.entries() ) {
257
+ if( index === 0 ) {
258
+ final += `<p> ${chunk} </p>`
257
259
} else {
258
- final += ` \n > ${ note . content } `
260
+ final += `<blockquote style="margin-left: ${index * 10}px" > ${chunk} </blockquote> `
259
261
}
260
-
261
262
}
262
-
263
- return ilse .markdown .render ( final )
264
-
263
+ final += "</blockquote>"
264
+ return final
265
+ return ilse.markdown.render( text )
266
+ */
265
267
},
266
268
267
269
on_focus ( event , inote ) {
@@ -540,13 +542,12 @@ export default {
540
542
}
541
543
542
544
.paragraph-note {
543
- margin-right : 8px ;
544
- margin-top : 2px ;
545
+ margin-top : -5px ;
545
546
text-align : center ;
546
547
cursor : pointer ;
547
548
color : #a3a3a3 ;
548
549
color : var (--text-color );
549
- font-size : 12 px ;
550
+ font-size : 24 px ;
550
551
}
551
552
552
553
.link {
@@ -626,6 +627,7 @@ blockquote {
626
627
border-left : 4px solid var ( --text-color );
627
628
color : var ( --text-color );
628
629
background : var ( --background-color );
630
+ margin-left : auto ;
629
631
}
630
632
631
633
code {
0 commit comments