mikepenz / multiplatform-markdown-renderer

Markdown renderer for Kotlin Multiplatform Projects (Android, iOS, Desktop), using Compose.

Home Page:https://mikepenz.github.io/multiplatform-markdown-renderer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug: no links in header

Ushie opened this issue · comments

commented

About this issue

  • Briefly describe the issue:

Links can't be used in Headers

Image:

image

  • How can the issue be reproduced / sample code
    val markdown = """
    # [This doesnt work](https://github.com/)
    [This works](https://github.com/)""".trimIndent()

    Markdown(
        content = markdown,
        colors = markdownColor(
            text = MaterialTheme.colorScheme.onSurfaceVariant,
            codeBackground = MaterialTheme.colorScheme.secondaryContainer,
            codeText = MaterialTheme.colorScheme.onSecondaryContainer
        ),
        typography = markdownTypography(
            h1 = MaterialTheme.typography.headlineSmall.copy(fontWeight = FontWeight.Bold),
            h2 = MaterialTheme.typography.titleLarge.copy(fontWeight = FontWeight.Bold),
            h3 = MaterialTheme.typography.titleMedium.copy(fontWeight = FontWeight.Bold),
            text = MaterialTheme.typography.bodyMedium,
            list = MaterialTheme.typography.bodyMedium
        )
    )

Details

  • v0.8.0
  • Android

Checklist

Thank you very much for the report. Will look into this as soon as I have time