diff --git a/posts/2024-11-17-expectations-disappointment.rst b/posts/2024-11-17-expectations-disappointment.rst index 400d8cc..cd4feec 100644 --- a/posts/2024-11-17-expectations-disappointment.rst +++ b/posts/2024-11-17-expectations-disappointment.rst @@ -40,7 +40,7 @@ The other way to react And often in such situations, you know that something you believe is fiction. While the rationalist mantra leaves open the door for the story to be false, -most people dont tend to knowingly violate expectations to hurt others. +most people don’t tend to knowingly violate expectations to hurt others. But if you aren’t in a situation that is so toxic that you can expect that to be the case, don’t make the situation toxic by expecting the worst, but think “I notice that I am confused …” diff --git a/src/components/markup/MarkupNodeComponent.tsx b/src/components/markup/MarkupNodeComponent.tsx index 54f2d5e..815ecbf 100644 --- a/src/components/markup/MarkupNodeComponent.tsx +++ b/src/components/markup/MarkupNodeComponent.tsx @@ -18,10 +18,20 @@ import { Bullet, type Elem, type Node, Type } from '../../markup/MarkupDocument' import CodeBlock from '../CodeBlock' import Plotly from '../Plotly' -import type { SystemCssProperties } from '@mui/system' +import type { + CSSPseudoSelectorProps, + CSSSelectorObjectOrCssVariables, + SystemCssProperties, +} from '@mui/system' import ASTErrorMessage from './nodes/ASTErrorMessage' import High from './nodes/High' +/** Actual type of `sx`, no idea why the one imported from `@mui/system` doesn’t work */ +type SystemStyleObject = + SystemCssProperties & + CSSPseudoSelectorProps & + CSSSelectorObjectOrCssVariables + const KATEX_SETTINGS: KatexOptions = { output: 'mathml', } @@ -74,10 +84,20 @@ const MarkupNodeComponentInner: FC = ({ node, level }) => { ) case Type.BlockQuote: { - const sx: SystemCssProperties = { marginInlineStart: 5 } + const sx: SystemStyleObject = { + marginInlineStart: 5, + } if (node.variant === 'epigraph') { sx.fontStyle = 'italic' sx.marginInlineEnd = 5 + sx['::before'] = { + color: 'color(from currentcolor display-p3 r g b / .3)', + content: 'open-quote', + fontSize: '4em', + lineHeight: '0.1em', + marginRight: '0.25em', + verticalAlign: '-0.4em', + } } return (