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

@ -17,3 +17,4 @@ 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.
- You can use hyperlink `[bun.sh](https://bun.sh)`
- 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]
keywords = ["illegal-instruction", "core-dumped", "dumped", "core", "illegal"]
cotent = """
content = """
**Illegal instruction - core dumped**
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:
Arch Linux: `yay -S intel-sde`
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
cd /tmp
tar -xf intel-sde.tar.xz
@ -94,7 +94,7 @@ mkdir /usr/local/bin -p
cp sde64 /usr/local/bin/sde
cp -r intel64 /usr/local/bin/
cp -r misc /usr/local/bin/
```
+++
**2.** Add alias to 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();
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);
}