markdown.append-to-last
- description
- items with text added to the last item on a new line (an indented line that continues a list item)
- type
Fn(items: List<String>, text: String) -> List<String>
- expression
fn(items$0, text$1) => let count$2 = @core.list-length(value: $0); match @core.list-get(list: $0, index: @core.minus(left: $2, right: 1)) { #some(last$3) => @core.list-append( list: @core.list-slice(T: String, list: $0, start: 0, end: @core.minus(left: $2, right: 1)), item: @std.string-join(items: [$3, "\n", $1], separator: "") ), #none(_) => [$1] }
- visibility
- public
markdown.append-to-last (project markdown, branch main, snapshot A_DQB42norQipCLzT0TSP-ZbZiC-EXHKoYK6tAFWTC0) id: KCnKAmtpUbVBH9hgEm-9tq88EqRhiRDn2BN352nn7XQ content hash: XVDj7uSZ5gAzrt7nx6aGJw2wYusNo5pwv9ikMcaAlR8