diff options
author | khswong <42327203+khswong@users.noreply.github.com> | 2020-01-31 16:30:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-31 16:30:16 -0800 |
commit | 70e59f7f3d1229d30f11683e3b0a86bdfdf40cd9 (patch) | |
tree | 58c1b8e24481243e0a9087e8faec56f86ef6bc1a /toml.html.markdown | |
parent | a0f91aacf973114021cf0f789399e6b9c20f3093 (diff) |
[toml/en] Fix Formatting and Syntax Highlighting
Switching between json code block and toml code block caused it to render improperly. Fixed.
Diffstat (limited to 'toml.html.markdown')
-rwxr-xr-x | toml.html.markdown | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/toml.html.markdown b/toml.html.markdown index 4c76ee91..2b234965 100755 --- a/toml.html.markdown +++ b/toml.html.markdown @@ -12,7 +12,7 @@ It is an alternative to YAML and JSON. It aims to be more human friendly than JS Be warned, TOML's spec is still changing a lot. Until it's marked as 1.0, you should assume that it is unstable and act accordingly. This document follows TOML v0.4.0. -``` +```toml # Comments in TOML look like this. ################ @@ -223,8 +223,8 @@ emptyTableAreAllowed = true name = "Nail" sku = 284758393 color = "gray" - -# JSON-land styled structure: +``` +The equivalent in JSON would be: ```json { "products": [ @@ -242,6 +242,8 @@ color = "gray" ] } ``` + +```toml # You can create nested arrays of tables as well. Each double-bracketed # sub-table will belong to the nearest table element above it. @@ -266,11 +268,11 @@ color = "gray" [[fruit.color]] name = "yellow" note = "I am an array item in banana fruit's table/map" -``` - -# In JSON land, this code will be: +``` +The equivalent in JSON would be: ```json + { "fruit": [ { |