1
0
Fork 0

chore(markdown): Fixed crowdin issues with frontmatter

This commit is contained in:
joostdecock 2023-05-19 11:16:15 +02:00
parent d846a3202f
commit 24880de16f
5492 changed files with 10988 additions and 11004 deletions

View file

@ -1,13 +0,0 @@
import { Popout } from 'shared/components/popout.mjs'
<Fixme compact>
This should be rendered in a `Fixme` component. The component is passed in the `components` props.
</Fixme>
<Popout tip>
If this is processed as MDX this component should be imported and also work.
</Popout>

View file

@ -1,13 +0,0 @@
import { Popout } from 'shared/components/popout.mjs'
<Fixme compact>
This should be rendered in a `Fixme` component. The component is passed in the `components` props.
</Fixme>
<Popout tip>
If this is processed as MDX this component should be imported and also work.
</Popout>

10
scripts/fix-crowdin.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
#
# For reasons that I don't know nor have been able to fix, Crowding
# sometimes (but not always) changes the frontmatter marker from:
# --- to: - - -
# This causes the webpack loader to not recognize it as frontmatter,
# which is not good and causes all sorts of problems.
# This script changes all occurances of `- - -` on a single line to `---`
# for all files under the markdown folder.
find ./markdown/. -type f -name "*.md" -exec sed -i "s/^- - -$/---/g" {} +