forked from freesewing/markdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fixcrowdin.sh
executable file
·48 lines (42 loc) · 1.77 KB
/
fixcrowdin.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
# There's an issue with crowding where it messes up MDX inline components
# This scripts tries to fix as many of those issues as possible in an automated way
# Fix <Note> component
sed -i 's/note>/Note>/' **/*.md
sed -i 's/note>/Note>/' **/**/*.md
sed -i 's/note>/Note>/' **/**/**/*.md
sed -i 's/note>/Note>/' **/**/**/**/*.md
sed -i 's/note>/Note>/' **/**/**/**/**/*.md
sed -i 's/note>/Note>/' **/**/**/**/**/**/*.md
sed -i 's/note>/Note>/' **/**/**/**/**/**/***.md
# Fix <Warning> component
sed -i 's/warning>/Warning>/' **/*.md
sed -i 's/warning>/Warning>/' **/**/*.md
sed -i 's/warning>/Warning>/' **/**/**/*.md
sed -i 's/warning>/Warning>/' **/**/**/**/*.md
sed -i 's/warning>/Warning>/' **/**/**/**/**/*.md
sed -i 's/warning>/Warning>/' **/**/**/**/**/**/*.md
sed -i 's/warning>/Warning>/' **/**/**/**/**/**/***.md
# Fix <Tip> component
sed -i 's/tip>/Tip>/' **/*.md
sed -i 's/tip>/Tip>/' **/**/*.md
sed -i 's/tip>/Tip>/' **/**/**/*.md
sed -i 's/tip>/Tip>/' **/**/**/**/*.md
sed -i 's/tip>/Tip>/' **/**/**/**/**/*.md
sed -i 's/tip>/Tip>/' **/**/**/**/**/**/*.md
sed -i 's/tip>/Tip>/' **/**/**/**/**/**/***.md
# Fix <Example> component
sed -i 's/example>/Example>/' **/*.md
sed -i 's/example>/Example>/' **/**/*.md
sed -i 's/example>/Example>/' **/**/**/*.md
sed -i 's/example>/Example>/' **/**/**/**/*.md
sed -i 's/example>/Example>/' **/**/**/**/**/*.md
sed -i 's/example>/Example>/' **/**/**/**/**/**/*.md
sed -i 's/example>/Example>/' **/**/**/**/**/**/***.md
sed -i 's/<example/<Example/' **/*.md
sed -i 's/<example/<Example/' **/**/*.md
sed -i 's/<example/<Example/' **/**/**/*.md
sed -i 's/<example/<Example/' **/**/**/**/*.md
sed -i 's/<example/<Example/' **/**/**/**/**/*.md
sed -i 's/<example/<Example/' **/**/**/**/**/**/*.md
sed -i 's/<example/<Example/' **/**/**/**/**/**/***.md