orchidhq / Orchid

Build and deploy beautiful documentation sites that grow with you
https://orchid.run
GNU General Public License v3.0
516 stars 53 forks source link

Code block not displaying correctly #367

Closed xrofa closed 4 years ago

xrofa commented 4 years ago

Orchid version: 0.20.0 Theme: Editorial

Code sample:

/**
     * Sample Comment
     *
     * Example usage:
     *
     * ```swift
     * import MyLib
     *
     * var libInstance = MyLib(parameterA: "xXXxxXxx", parameterB: "123")
     * ```
     * */

It should render using a block code with the <pre><code> tags, but it doesn't

Update: Even with the 4spaces/1tab, it still doesn't renders correctly.

/**
     * Sample Comment
     *
     * Example usage:
     *
     *    import MyLib
     *    var libInstance = MyLib(parameterA: "xXXxxXxx", parameterB: "123")
     * */
cjbrooks12 commented 4 years ago

This is now fixed and released in 0.21.0