cloudflare-docs-engine icon indicating copy to clipboard operation
cloudflare-docs-engine copied to clipboard

Formatting regression in code blocks

Open kristianfreeman opened this issue 3 years ago • 0 comments

Since be06f1028838ded92407b4ea842861ea58875aa3, there appears to be a regression in how code blocks are formatted in our docs. This change causes extraneous whitespace on properly-spaced code (example image below).

The offending code seems to be this new <br /> tag here:

https://github.com/cloudflare/cloudflare-docs-engine/blob/be06f1028838ded92407b4ea842861ea58875aa3/src/components/mdx/code-block.js#L129-L131

Here's an example in a new tutorial we launched for Workers:

Example

kristianfreeman avatar Aug 02 '21 17:08 kristianfreeman