-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gnoweb): prettify json code blocks in render (#2033)
<!-- please provide a detailed description of the changes made in this pull request. --> ## Prettify JSON code blocks in gnoweb render - add hljs json language support - upgrade marked - add marked-highlight to plug marked with hljs - format json before highlighting - fix horizontal overflow in code blocks ## Before <img width="1511" alt="Screenshot 2024-05-03 at 19 42 59" src="https://github.com/gnolang/gno/assets/7917064/9d226d33-8caf-4f23-86d1-59b3fbd84d7b"> ## After <img width="1512" alt="Screenshot 2024-05-03 at 19 41 21" src="https://github.com/gnolang/gno/assets/7917064/535e5bad-f624-452c-83bd-9430db08392a"> <details><summary>Contributors' checklist...</summary> - [ ] Added new tests, or not needed, or not feasible - [ ] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [ ] Updated the official documentation or not needed - [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [ ] Added references to related issues and PRs - [ ] Provided any useful hints for running manual tests - [ ] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md). </details> Signed-off-by: Norman Meier <[email protected]>
- Loading branch information
Showing
5 changed files
with
38 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters