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) {
|
||||
@ -150,9 +151,11 @@ fun UnorderedListNode(node: ASTNode, text: String, onTextChange: (String) -> Uni
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@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) {
|
||||
@ -161,6 +164,7 @@ fun OrderedListNode(node: ASTNode, text: String, onTextChange: (String) -> Unit)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
fun ListItemNode(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user