Markdown: increase list vertical spacing
This commit is contained in:
parent
624a6a6d2e
commit
10d4b02798
@ -142,6 +142,7 @@ fun ParagraphNode(node: ASTNode, text: String) {
|
||||
|
||||
@Composable
|
||||
fun UnorderedListNode(node: ASTNode, text: String, onTextChange: (String) -> Unit) {
|
||||
Column(modifier = Modifier.padding(vertical = 4.dp)) {
|
||||
var counter = 1
|
||||
for (child in node.children) {
|
||||
if (child.type == MarkdownElementTypes.LIST_ITEM) {
|
||||
@ -149,10 +150,12 @@ fun UnorderedListNode(node: ASTNode, text: String, onTextChange: (String) -> Uni
|
||||
counter++
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
fun OrderedListNode(node: ASTNode, text: String, onTextChange: (String) -> Unit) {
|
||||
Column(modifier = Modifier.padding(vertical = 4.dp)) {
|
||||
var counter = 1
|
||||
for (child in node.children) {
|
||||
if (child.type == MarkdownElementTypes.LIST_ITEM) {
|
||||
@ -160,6 +163,7 @@ fun OrderedListNode(node: ASTNode, text: String, onTextChange: (String) -> Unit)
|
||||
counter++
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user