Skip to content

Commit d40d372

Browse files
authored
chore(core): fix bug in Readme (#14)
1 parent bc06813 commit d40d372

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Now, you're ready to use it as a custom HTML tag within your web application:
5454
To use **json-viewer** in your web application, load json-viewer.js and embed your JSON object within an HTML element of your choice and initialize **json-viewer** as follows:
5555

5656
```html
57-
<!DOCTYPE html>
57+
<!doctype html>
5858
<html>
5959
<head>
6060
<script src="https://pfau-software.de/json-viewer/dist/iife/index.js"></script>
@@ -98,9 +98,8 @@ You can also provide the `data` option as the content of the "json-viewer" eleme
9898
show-copy="true"
9999
show-size="true"
100100
>
101-
{ "string": "this is a test ...", "integer": 42, "array":[ 1, 2, 3, "test",
102-
NaN], "float":3.14159, "string_number":"1234", "date": "Tue, Oct 17, 2023,
103-
08:58 AM" }
101+
{ "string": "this is a test ...", "integer": 42, "array":[ 1, 2, 3, "test", "NaN"], "float":3.14159,
102+
"string_number":"1234", "date": "Tue, Oct 17, 2023, 08:58 AM" }
104103
</andypf-json-viewer>
105104
```
106105

@@ -310,9 +309,8 @@ Example:
310309
show-size="true"
311310
theme='{"base00": "gray", "base01": "blue", "base02": "yellow", "base03": "orange", "base04": "red", "base05": "#9DA0A2", "base06": "#D2D5D7", "base07": "#F1F2F3", "base08": "#EF5253", "base09": "#E66B2B", "base0A": "#E4B51C", "base0B": "#7CC844", "base0C": "#52CBB0", "base0D": "#33A3DC", "base0E": "#A363D5", "base0F": "gray"}'
312311
>
313-
{"string": "this is a test ...", "integer": 42, "array":[ 1, 2, 3, "test",
314-
"NaN"], "float":3.14159, "string_number":"1234", "date": "Tue, Oct 17, 2023,
315-
08:58 AM"}
312+
{"string": "this is a test ...", "integer": 42, "array":[ 1, 2, 3, "test", "NaN"], "float":3.14159,
313+
"string_number":"1234", "date": "Tue, Oct 17, 2023, 08:58 AM"}
316314
</andypf-json-viewer>
317315
```
318316

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@andypf/json-viewer",
3-
"version": "2.1.5",
3+
"version": "2.1.6",
44
"description": "A javascript library to visualize json nicely",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",

0 commit comments

Comments
 (0)