diff --git a/content/6_Plat/Slope.mdx b/content/6_Plat/Slope.mdx index 78efb02..7f99a98 100644 --- a/content/6_Plat/Slope.mdx +++ b/content/6_Plat/Slope.mdx @@ -144,8 +144,6 @@ dp[4] = { 3, -2, -9, -16, -26} dif[4] = { 5, 7, 7, 10} ``` -
- After buying one share, $9$ is subtracted from each value and they are shifted one index to the right. ``` @@ -153,8 +151,6 @@ dp[5] = { x, -6, -11, -18, -25, -35} dif[5] = { x, 5, 7, 7, 10} ``` -
- Then we can choose to sell one share at price $9$. The last two DP values remain the same while the others change. ``` @@ -162,8 +158,6 @@ dp[5] = { 3, -2, -9, -16, -25, -35} dif[5] = { 5, 7, 7, 9, 10} ``` -
- Again, we can choose to sell one share at price $9$. The last three DP values remain the same while the others change. ``` @@ -171,8 +165,6 @@ dp[5] = { 7, 0, -7, -16, -25, -35} dif[5] = { 7, 7, 9, 9, 10} ``` -
- (insert diagrams) diff --git a/src/components/markdown/CodeBlock.tsx b/src/components/markdown/CodeBlock.tsx index 7e76652..91a3602 100644 --- a/src/components/markdown/CodeBlock.tsx +++ b/src/components/markdown/CodeBlock.tsx @@ -19,7 +19,7 @@ export default ({ children, className }) => { > {({ className, style, tokens, getLineProps, getTokenProps }) => (
           {tokens.map((line, i) => (
diff --git a/src/components/markdown/SpoilerComponent.tsx b/src/components/markdown/SpoilerComponent.tsx
index 248db1d..7810df7 100644
--- a/src/components/markdown/SpoilerComponent.tsx
+++ b/src/components/markdown/SpoilerComponent.tsx
@@ -39,7 +39,7 @@ const SpoilerComponent = ({ children, title }) => {
         {title}
       

- {show &&
{children}
} + {show &&
{children}
} ); }; diff --git a/src/styles/markdown.css b/src/styles/markdown.css index 88c4e49..bc4c7e7 100644 --- a/src/styles/markdown.css +++ b/src/styles/markdown.css @@ -105,7 +105,9 @@ .spoiler-body > pre { margin-left: -1rem !important; margin-right: -1rem !important; - margin-bottom: -1rem !important; +} +.spoiler-body > pre + p { + @apply mt-4; } .info-block .info-block__heading {