mikepenz/multiplatform-markdown-renderer

bug: no links in header

Closed this issue · 1 comments

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