From 0235c0ee12deaffed1d69ebaad86d24e5e48d9df Mon Sep 17 00:00:00 2001 From: Andrzej Ratajczak <32793002+BarkingBad@users.noreply.github.com> Date: Mon, 5 Oct 2020 11:31:54 +0200 Subject: Add anchors for markdown (#1442) --- plugins/gfm/src/main/kotlin/GfmPlugin.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/gfm/src/main/kotlin/GfmPlugin.kt b/plugins/gfm/src/main/kotlin/GfmPlugin.kt index 0376b32e..780e4cb2 100644 --- a/plugins/gfm/src/main/kotlin/GfmPlugin.kt +++ b/plugins/gfm/src/main/kotlin/GfmPlugin.kt @@ -205,6 +205,7 @@ open class CommonmarkRenderer( val builder = StringBuilder() it.children.forEach { builder.append("| ") + builder.append("") builder.append( buildString { it.build(this, pageContext) }.replace( Regex("#+ "), @@ -366,4 +367,4 @@ class MarkdownLocationProviderFactory(val context: DokkaContext) : LocationProvi class MarkdownLocationProvider( pageGraphRoot: RootPageNode, dokkaContext: DokkaContext -) : DokkaLocationProvider(pageGraphRoot, dokkaContext, ".md") \ No newline at end of file +) : DokkaLocationProvider(pageGraphRoot, dokkaContext, ".md") -- cgit