From 68f016d886c755acff58782514a79f5203201fa1 Mon Sep 17 00:00:00 2001 From: Aleksei Trifonov Date: Sun, 22 Aug 2021 21:11:16 +0300 Subject: [toml/en] Fix JSON code blocks in TOML (#4204) It will correctly show structured, formatted JSON to give a better understanding --- toml.html.markdown | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'toml.html.markdown') diff --git a/toml.html.markdown b/toml.html.markdown index 2b234965..804fefaa 100755 --- a/toml.html.markdown +++ b/toml.html.markdown @@ -225,6 +225,7 @@ sku = 284758393 color = "gray" ``` The equivalent in JSON would be: + ```json { "products": [ @@ -270,9 +271,10 @@ The equivalent in JSON would be: note = "I am an array item in banana fruit's table/map" ``` + The equivalent in JSON would be: -```json +```json { "fruit": [ { -- cgit v1.2.3 From 5e53b2aca948fc584b121064de6deea112615ee6 Mon Sep 17 00:00:00 2001 From: Jeff Hale Date: Mon, 23 Aug 2021 04:54:29 -0400 Subject: [toml/en] fix code not rendering (#4221) The json code block renders fine in Github Flavored Markdown on Github, but not on the learnxinyminutes.com/docs/toml page. Because there isn't any syntax highlighting for this section anyway, I switched it to vanilla code block. --- toml.html.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'toml.html.markdown') diff --git a/toml.html.markdown b/toml.html.markdown index 804fefaa..79aa544c 100755 --- a/toml.html.markdown +++ b/toml.html.markdown @@ -274,7 +274,8 @@ The equivalent in JSON would be: The equivalent in JSON would be: -```json +``` + { "fruit": [ { -- cgit v1.2.3