dokka
dokka copied to clipboard
Gfm renderer: Code formatting support
Should fix #1854 and #1970
Works for me, but no tests for now. Failed to find similar tests, are there any?
"Shit in = Shit out".
Ok, let's start from the basics.
Should KDoc PARSER conform to GFM Specification?
If yes - currently it is wrong in 15 cases of 22, mostly missed or extra spaces.
Tests in #2029.
We don't have any official spec (this is a work in progress) but I'd say that we should follow at least a Commonmark spec. Everything that works from GFM is a bonus
GFM Spec is basically same as Commonmark spec, with added Tables and Strikethrough extensions. So for now - Dokka (KDoc parser) does not pass 70% of Commonmark spec tests.
Most of missing things are small issues like white characters that are not game breaking, specially for a piece of software in alpha version
Maybe it's tolerable (for alpha version) - but that was reaction to your comment about extra spaces in GFM renderer :) They comes from earlier stages of pipeline.
@MarcinAman is there a follow up about this PR?