hasura / gatsby-gitbook-starter

Generate GitBook style modern docs/tutorial websites using Gatsby + MDX
https://hasura.io/learn/graphql/react/introduction/
MIT License
985 stars 376 forks source link

experiment: update mdx parser to accept custom ids on multi lingual translations #137

Closed KRRISH96 closed 2 years ago

KRRISH96 commented 3 years ago

Use below format in MDX files for header tags to have custom ids (english) on translated files

Fixes URL translation (URL should be in english).

Heading Ids

### My Great Heading IN Other Language {#custom-id-in-english}

The HTML looks like this:

<h3 id="custom-id-in-english">My Great Heading IN Other Language</h3>

Note: this is experimental and need proper testing before considering as a fix.

KRRISH96 commented 3 years ago

@praveenweb This is ready for review and live experimentation.