Ryan Scott
12/29/2024, 5:11 PM> Task :site:kobwebxMarkdownConvert FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':site:kobwebxMarkdownConvert'.
> class org.commonmark.node.Emphasis cannot be cast to class org.commonmark.node.Text (org.commonmark.node.Emphasis and org.commonmark.node.Text are in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader$InstrumentingVisitableURLClassLoader @6c75677b)
Ryan Scott
12/29/2024, 5:13 PMDavid Herman
12/29/2024, 5:32 PMRyan Scott
12/29/2024, 5:49 PM_something_
Ryan Scott
12/29/2024, 5:50 PMRyan Scott
12/29/2024, 5:50 PMDavid Herman
12/29/2024, 5:50 PMRyan Scott
12/29/2024, 5:51 PMRyan Scott
12/29/2024, 5:51 PMDavid Herman
12/29/2024, 5:51 PMRyan Scott
12/29/2024, 5:51 PMDavid Herman
12/29/2024, 5:51 PMRyan Scott
12/29/2024, 5:54 PMRyan Scott
12/29/2024, 5:54 PMDavid Herman
12/29/2024, 5:55 PMRyan Scott
12/29/2024, 5:59 PMRyan Scott
12/29/2024, 6:00 PMRyan Scott
12/29/2024, 6:04 PMRyan Scott
12/29/2024, 6:05 PMDavid Herman
12/29/2024, 6:44 PMMarkdown test: *bold*, _italic_, and **bold italic** text.
and it worked fine.David Herman
12/29/2024, 6:45 PMRyan Scott
12/29/2024, 6:46 PMRyan Scott
12/29/2024, 6:48 PMRyan Scott
12/29/2024, 6:53 PMRyan Scott
12/29/2024, 6:53 PMRyan Scott
12/29/2024, 6:54 PMDavid Herman
12/29/2024, 6:56 PMbuild.gradle.kts
file with markdown handlers?Ryan Scott
12/29/2024, 6:56 PMRyan Scott
12/29/2024, 6:56 PMhandlers {
val packageName = "com.fsryan.site.components"
code.set { code ->
"$packageName.code.CodeBlock(text = \"\"\"${code.literal.escapeTripleQuotedText()}\"\"\", lang = ${
code.info.takeIf { it.isNotBlank() }?.let { "\"$it\"" }
})"
}
}
Ryan Scott
12/29/2024, 6:56 PMDavid Herman
12/29/2024, 6:57 PMRyan Scott
12/29/2024, 7:00 PMjetbrains-compose = "1.7.1"
kobweb = "0.20.0"
kotlin = "2.1.0"
Ryan Scott
12/29/2024, 7:02 PMDavid Herman
12/29/2024, 7:08 PM> *Note*
> Here is a note
In 0.19.1, we introduced a new callout syntax which looks like this:
> [!NOTE]
> Here is a note
I would NOT have expected that to crash the kind of text Ryan was using, but it does look like I have some bad logic in there. I'll fix it for 0.20.1, although hopefully the average person won't get hit with this.Ryan Scott
12/29/2024, 7:20 PMRyan Scott
12/29/2024, 7:20 PMDavid Herman
12/29/2024, 9:59 PM0.20.1-SNAPSHOT
should have the fix!