Skip to content

Commit d56c00b

Browse files
author
Dimitri POSTOLOV
authored
Update [[...slug]].mdx (#380)
1 parent 387ab3b commit d56c00b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

website/pages/en/substreams/[[...slug]].mdx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ export async function getStaticProps({ params: { slug = ['README'] } }) {
3939
.replaceAll(/{%.*?%}/g, '')
4040
// close img tags only if he doesn't point to .gitbook
4141
.replaceAll(/<img(.*?)>/g, (...m) => (m[1].includes('src=".gitbook') ? '' : `<img${m[1]}/>`))
42-
// fixes http://localhost:3000/en/substreams/reference-and-specs/authentication/
43-
.replaceAll('<pre class="language-bash" data-overflow="wrap"><code class="lang-bash">', '```bash\n')
44-
// fixes http://localhost:3000/en/substreams/developers-guide/modules/inputs/
45-
.replaceAll('<pre class="language-yaml" data-title="manifest excerpt"><code class="lang-yaml">', '```yaml\n')
46-
.replaceAll('</code></pre>', '```')
4742
const mdx = await buildDynamicMDX(data, {
4843
mdxOptions: {
4944
// change-log contains `{variable}` text that is thrown an error by MDX2 parser since he treat it as variable injection, to fix it we parse chang-log with the markdown parser

0 commit comments

Comments
 (0)