Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ object Commonmark {
val tables = "org.commonmark:commonmark-ext-gfm-tables:$version"
val strikethrough = "org.commonmark:commonmark-ext-gfm-strikethrough:$version"
val autolink = "org.commonmark:commonmark-ext-autolink:$version"
val imageAttributes = "org.commonmark:commonmark-ext-image-attributes:$version"
}

object AndroidConfiguration {
Expand Down
2 changes: 2 additions & 0 deletions richtext-commonmark/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ kotlin {
implementation(Commonmark.tables)
implementation(Commonmark.strikethrough)
implementation(Commonmark.autolink)
implementation(Commonmark.imageAttributes)
}
}

Expand All @@ -40,6 +41,7 @@ kotlin {
implementation(Commonmark.tables)
implementation(Commonmark.strikethrough)
implementation(Commonmark.autolink)
implementation(Commonmark.imageAttributes)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import org.commonmark.ext.gfm.tables.TableCell.Alignment.RIGHT
import org.commonmark.ext.gfm.tables.TableHead
import org.commonmark.ext.gfm.tables.TableRow
import org.commonmark.ext.gfm.tables.TablesExtension
import org.commonmark.ext.image.attributes.ImageAttributesExtension
import org.commonmark.node.BlockQuote
import org.commonmark.node.BulletList
import org.commonmark.node.Code
Expand Down Expand Up @@ -191,6 +192,7 @@ public actual class CommonmarkAstNodeParser actual constructor(
listOfNotNull(
TablesExtension.create(),
StrikethroughExtension.create(),
ImageAttributesExtension.create(),
if (options.autolink) AutolinkExtension.create() else null
)
)
Expand Down