Skip to content

Unintentional spacing in code blocks using Mozilla Firefox #130

@weleo

Description

@weleo

Unintentional spacing in code blocks is rendered using Firefox, while it works as intended on Safari and Chrome.

Example with Firefox:

Screenshot 2021-01-14 at 00 57 05

A quick fix in tailwind.config.js is to overwrite the default 'pre code::after': { content: 'none' } with the default (and I have no idea why):

module.exports = {
  theme: {
    extend: {
      typography: theme => ({
        DEFAULT: {
          css: [
             {
              'pre code::after': {
                content: 'none'
              }
            }
          ]
        }
      })
    }
  },
  plugins: [require('@tailwindcss/typography')]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions