Skip to content

Commit 5d7e99a

Browse files
committed
add example test code
1 parent f1df742 commit 5d7e99a

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

android/src/main/java/com/swmansion/enriched/markdown/spans/BlockquoteSpan.kt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,8 @@ class BlockquoteSpan(
7575

7676
/**
7777
* Drawn BEFORE glyphs and before other [LineBackgroundSpan]s attached to the
78-
* same line, so inline backgrounds painted by mention / code spans render on
79-
* top of the blockquote fill instead of being covered by it (the previous
80-
* implementation painted the blockquote fill from [drawLeadingMargin], which
81-
* runs AFTER [LineBackgroundSpan.drawBackground] and erased the mention
82-
* pill).
78+
* same line, so inline backgrounds painted by code spans render on
79+
* top of the blockquote fill instead of being covered by it.
8380
*/
8481
override fun drawBackground(
8582
canvas: Canvas,

apps/example/src/sampleMarkdown.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Forests cover approximately **31% of the Earth's land surface**, providing habit
1111
1212
Forests are often called the *lungs of the Earth*. They absorb **carbon dioxide** and release oxygen through photosynthesis — a process essential for all life on our planet. A single mature tree can absorb up to \`48 pounds\` of CO₂ per year.
1313
14-
> In every walk with nature, one receives far more than he seeks.
14+
> In every walk with nature, one receives far more than he seeks. \`test code\`
1515
>
1616
> — John Muir
1717
@@ -136,7 +136,7 @@ class TreeNetwork {
136136
this.trees = [];
137137
this.fungalConnections = new Map();
138138
}
139-
139+
140140
connectTrees(tree1, tree2) {
141141
// Trees share nutrients through mycorrhizal networks
142142
this.fungalConnections.set(\`\${tree1.id}-\${tree2.id}\`, {
@@ -330,11 +330,11 @@ def detect_deforestation(region):
330330
"""Monitor forest cover changes using satellite imagery"""
331331
current_cover = satellite_imagery.get_forest_cover(region)
332332
previous_cover = satellite_imagery.get_historical_cover(region, years_ago=1)
333-
333+
334334
deforestation_rate = (previous_cover - current_cover) / previous_cover
335335
if deforestation_rate > 0.05: # 5% threshold
336336
alert_conservation_team(region, deforestation_rate)
337-
337+
338338
return deforestation_rate
339339
\`\`\`
340340

0 commit comments

Comments
 (0)