You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
funmain() {
val str ="![cover](https://www.google.com)"val options =PegdownOptionsAdapter.flexmarkOptions(
Extensions.ALL
)
val parser =Parser.builder(options).build()
val document = parser.parse(str)
val formatOptions =MutableDataSet()
.set(Parser.EXTENSIONS, Parser.EXTENSIONS.get(options))
.set(
Parser.EXTENSIONS,
Collections.singletonList(SageFormatterExtension.create()) asCollection<Extension>
)
val render =Formatter.builder(formatOptions).build()
val result = render.render(document)
println(result)
}
I follow CustomLinkResolverSample.java example and Render AST as Markdown with Formatting Options to implement custom parsing link, but not working.
SageFormatterExtension
DocxLinkResolver
println("resolveLink")
did not run, indicating that the extension was not loaded.The text was updated successfully, but these errors were encountered: