Skip to content

Four spaces codeblock is rendered different than three backsticks codeblock on small devices #1921

Closed
adamlaska/osmos-cosmos-sdk
#5
@cedaesca

Description

@cedaesca
  • I confirm that this is an issue rather than a question.

Bug report

Three backsticks codeblock takes full container width while four spaces codeblock has some space on left and right.

Check this image

Steps to reproduce

  1. Create a three backsticks codeblock
  2. Create a four spaces codeblock
  3. Change your browser screen size or access through phone
  4. Compare

What is expected?

Both should be the same width

What is actually happening?

Three backsticks codeblock is being rendered inside a div with the classes language-<language> and extra-class, the pre tag also has an language-<language> class

Other relevant information

  • Removing the language-<language> class from the outside div fixes it but the box isn't rounded.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions