Skip to content

Commit c179c80

Browse files
committed
Fix backticks being rendered in Markdown inline code
1 parent d8ee0aa commit c179c80

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

tailwind.config.js

+10-8
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ import typography from '@tailwindcss/typography';
22

33
/** @type {import('tailwindcss').Config} */
44
export default {
5-
content: [
6-
"./index.html",
7-
"./src/**/*.{js,ts,jsx,tsx}",
8-
],
5+
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
96
darkMode: 'class',
107
theme: {
118
extend: {
@@ -36,6 +33,13 @@ export default {
3633
color: theme('colors.primary.700'),
3734
},
3835
},
36+
/* Don't render the backticks in Markdown inline code */
37+
'code::before': {
38+
content: '""',
39+
},
40+
'code::after': {
41+
content: '""',
42+
},
3943
},
4044
},
4145
dark: {
@@ -52,7 +56,5 @@ export default {
5256
}),
5357
},
5458
},
55-
plugins: [
56-
typography,
57-
],
58-
}
59+
plugins: [typography],
60+
};

0 commit comments

Comments
 (0)