getgrav / grav-premium-issues

Official Grav Premium Issues repository to report problems or ask questions regarding the Premium products offered.
https://getgrav.org/premium
7 stars 2 forks source link

[typhoon] Incorrect rendering of highlighted inline code #301

Closed danielrpfeiffer closed 2 years ago

danielrpfeiffer commented 2 years ago

Grav v1.7.35 - Admin v1.10.35 - Typhoon Theme 2.3.6

Hello!

Inline code highligting unsing backticks works correctly in the admin preview but not in rendered page using the Typhoon theme. The rendered page shows the backticks where no backticks are expected.

Example: MD Editor (Content) Code-high1




Preview in Admin (correct no backticks visible) Code-high2




Render on Page (backticks rendered)

Code-High3

rhukster commented 2 years ago

This is actually a feature and the default style of Tailwind Prose plugin (https://tailwindcss.com/docs/typography-plugin). You can remove them with this code in the tailwind.config.js file (will require an npm run watch or npm run build to recompile the CSS though:

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