fix(tagsUtils): use +++ for codeblock

This commit is contained in:
xHyroM 2022-07-14 09:46:52 +02:00
parent a059e93c46
commit 568d7bc147
3 changed files with 6 additions and 4 deletions

View file

@ -16,4 +16,5 @@ I love bun ❤️
Informations: Informations:
- The bot uses interactions so you can use emoji from all discord servers. However, please only use ours as we can't control the others. - The bot uses interactions so you can use emoji from all discord servers. However, please only use ours as we can't control the others.
- You can use hyperlink `[bun.sh](https://bun.sh)` - You can use hyperlink `[bun.sh](https://bun.sh)`
- Keywords need to include the tag name - Keywords need to include the tag name
- Use `+++` for codeblock (https://canary.discord.com/channels/876711213126520882/887787428973281300/997045766411530281)

View file

@ -75,7 +75,7 @@ If that doesn't work (and you're on a Windows machine), try this:
[illegal-instruction] [illegal-instruction]
keywords = ["illegal-instruction", "core-dumped", "dumped", "core", "illegal"] keywords = ["illegal-instruction", "core-dumped", "dumped", "core", "illegal"]
cotent = """ content = """
**Illegal instruction - core dumped** **Illegal instruction - core dumped**
Bun currently only works on CPUs supporting the AVX2 instruction set. Bun currently only works on CPUs supporting the AVX2 instruction set.
@ -85,7 +85,7 @@ If you get this error while bun is initializing, you probably need to wrap the b
**1.** Install intel-sde: **1.** Install intel-sde:
Arch Linux: `yay -S intel-sde` Arch Linux: `yay -S intel-sde`
Other Distros: Other Distros:
```bash +++bash
wget https://downloadmirror.intel.com/732268/sde-external-9.7.0-2022-05-09-lin.tar.xz -O /tmp/intel-sde.tar.xz wget https://downloadmirror.intel.com/732268/sde-external-9.7.0-2022-05-09-lin.tar.xz -O /tmp/intel-sde.tar.xz
cd /tmp cd /tmp
tar -xf intel-sde.tar.xz tar -xf intel-sde.tar.xz
@ -94,7 +94,7 @@ mkdir /usr/local/bin -p
cp sde64 /usr/local/bin/sde cp sde64 /usr/local/bin/sde
cp -r intel64 /usr/local/bin/ cp -r intel64 /usr/local/bin/
cp -r misc /usr/local/bin/ cp -r misc /usr/local/bin/
``` +++
**2.** Add alias to bashrc **2.** Add alias to bashrc
`echo "alias bun='sde -chip-check-disable -- bun'" >> ~/.bashrc` `echo "alias bun='sde -chip-check-disable -- bun'" >> ~/.bashrc`

View file

@ -10,6 +10,7 @@ export interface Tag {
const tagCache: Collection<string, Tag> = new Collection(); const tagCache: Collection<string, Tag> = new Collection();
for (const [key, value] of Object.entries(tags)) { for (const [key, value] of Object.entries(tags)) {
(value as Tag).content = (value as Tag).content.replaceAll('+', '`');
tagCache.set(key, value as unknown as Tag); tagCache.set(key, value as unknown as Tag);
} }