File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -666,9 +666,11 @@ fn galley_from_rows(
666
666
num_indices += row. visuals . mesh . indices . len ( ) ;
667
667
668
668
row. section_index_at_start = u32:: MAX ; // No longer in use.
669
- for glyph in & mut row. glyphs {
670
- glyph. section_index = u32:: MAX ; // No longer in use.
671
- }
669
+
670
+ // MEMBRANE: Keep these values since we use them to render Markdown
671
+ // for glyph in &mut row.glyphs {
672
+ // glyph.section_index = u32::MAX; // No longer in use.
673
+ // }
672
674
}
673
675
674
676
let mut galley = Galley {
Original file line number Diff line number Diff line change @@ -700,7 +700,8 @@ pub struct Glyph {
700
700
/// Only used during layout, then set to an invalid value in order to
701
701
/// enable the paragraph-concat optimization path without having to
702
702
/// adjust `section_index` when concatting.
703
- pub ( crate ) section_index : u32 ,
703
+ /// MEMBRANE: Keep these values since we use them to render Markdown
704
+ pub section_index : u32 ,
704
705
}
705
706
706
707
impl Glyph {
You can’t perform that action at this time.
0 commit comments