Skip to content

Commit

Permalink
Added belowAsHtmlParser and aboveAsHtmlParser parsers
Browse files Browse the repository at this point in the history
  • Loading branch information
btheado authored and breck7 committed Dec 24, 2024
1 parent a71e359 commit ddfce4f
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion parsers/documentation.parsers
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,21 @@ aboveAsCodeParser
extends belowAsCodeParser
javascript
method = "previous"
reverse = true
reverse = true

belowAsHtmlParser
extends belowAsCodeParser
description displays html output of next particle in a code block
cueFromId
javascript
get code() {
return this.selectedParticles.filter(p => p.buildHtml).map(p => p.buildHtml()).join("\n")
}

aboveAsHtmlParser
description displays html output of previous particle in a code block
cueFromId
extends belowAsHtmlParser
javascript
method = "previous"
reverse = true

0 comments on commit ddfce4f

Please sign in to comment.