Disable quotation marks in quotes

This commit is contained in:
Austin Chen 2022-07-16 09:30:23 -07:00
parent 6d8ad74b4d
commit 916618be31
2 changed files with 10 additions and 2 deletions

View File

@ -21,7 +21,7 @@ import { FileUploadButton } from './file-upload-button'
import { linkClass } from './site-link' import { linkClass } from './site-link'
const proseClass = clsx( const proseClass = clsx(
'prose prose-sm prose-p:my-0 prose-li:my-0 prose-blockquote:not-italic max-w-none' 'prose prose-sm prose-p:my-0 prose-li:my-0 prose-blockquote:not-italic max-w-none prose-quoteless'
) )
export function useTextEditor(props: { export function useTextEditor(props: {
@ -94,7 +94,7 @@ export function TextEditor(props: {
return ( return (
<> <>
{/* hide placeholder when focused */} {/* hide placeholder when focused */}
<div className="w-full [&:focus-within_p.is-empty]:before:content-none"> <div className="[&:focus-within_p.is-empty]:before:content-none w-full">
{editor && ( {editor && (
<FloatingMenu <FloatingMenu
editor={editor} editor={editor}

View File

@ -17,6 +17,14 @@ module.exports = {
backgroundImage: { backgroundImage: {
'world-trading': "url('/world-trading-background.webp')", 'world-trading': "url('/world-trading-background.webp')",
}, },
typography: {
quoteless: {
css: {
'blockquote p:first-of-type::before': { content: 'none' },
'blockquote p:first-of-type::after': { content: 'none' },
},
},
},
}, },
}, },
plugins: [ plugins: [