solana-foundation / developer-content

Collection of Developer content for exploring, learning, and building in the Solana ecosystem.
https://solana.com/developers
81 stars 96 forks source link

unknown error while processing the markdown tokens.md #224

Closed JamieShip closed 1 month ago

JamieShip commented 1 month ago

Problem

https://solana.com/zh/docs/core/tokens

unknown error while processing the markdown content.

Proposed Solution

image
nickfrosty commented 1 month ago

I will look into this. The odd thing to me is that the content of this document does not appear to have translations to this language and yet it is breaking.....

nickfrosty commented 1 month ago

@JamieShip thanks for flagging this! I just push an update to solana.com that fixes this (and should prevent it in the future)

In a nutshell, our content translation platform Crowdin was altering the content of the markdown files to a point where our MDX parser would fail to parse them correctly due to some badly formatted content that Crowdin would return to us.

I improved that parser error handling, pre-parsing logic, and even added a more helpful error (with a direct link to create an issue) should something like this happen again :)