fuse-open / docs

Fuse documentation
https://fuseopen.com/docs
Other
12 stars 16 forks source link

generator: normalize language and indentation in <code> tags #57

Closed mortend closed 2 years ago

mortend commented 2 years ago

This adds a couple of new methods in MarkdownFormatter to automate postprocessing of <code> tags generated from raw documentation.

  1. Replace uno/ux languages with csharp/xml because those are better supported by the syntax hightlighter we're using on the site.

  2. Normalize whitespace and indentation inside <code> tags. This fixes visible issues with improper formatting on many HTML pages.

Example:

    <Foo>
        Hello, World
    </Foo>

that, becomes this, and looks nicer.

<Foo>
    Hello, World
</Foo>