madness 1.2.3 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e77780c419cafb7b6fe014a7005c042e2de0dbbb2c3841767366a143d9112f76
4
- data.tar.gz: 13858b4be4a5aa42d30d0051b16a223bd7f7290156daed3ef7bebe0a515ec7c9
3
+ metadata.gz: bd23bce526e8a8f0292bb76d566e374b11dcfbc9098ffe3bd917aaa5882e280c
4
+ data.tar.gz: 63f3098a8a7bd3a38433c133ce3d17960bbb6f9518234b6acd81a4af471ef91c
5
5
  SHA512:
6
- metadata.gz: 99a6096ea3cc8e18182ea4b1a56148164b5efb10301d276ea2e45b3cf94bfb433514c153b23054f69af90129ae96879ce032b90b6e9d23aa9ee853c0cbc37986
7
- data.tar.gz: 9508cdc8ec2f4821e9e1fca96570eaf53e10b7cfd3ef6580801f4f62cf12bb506a0cb0ab6c67256c3110aade725487592c8d1bc4f9bc360393f274b8dbc26433
6
+ metadata.gz: cbc4a3ed4eaa5128c3b5bc15ace61e051d01dfa40ef3aaa0541e66a32867791234c6c74a97226a3322faa36292a1ea6e6a40005913df121899d98df76c769ade
7
+ data.tar.gz: 987e1dab1dfeee1163d633c96a55f7fbbaddb91c81ec087107e12d7fa63ef5f8f64d79bffe277c171bf5ebfc63deaff2d5ec2f0f31038c27c29b244e6ab3b344
data/README.md CHANGED
@@ -2,12 +2,6 @@
2
2
 
3
3
  # Madness - Instant Markdown Server
4
4
 
5
- [![Gem Version](https://badge.fury.io/rb/madness.svg)](https://badge.fury.io/rb/madness)
6
- [![Build Status](https://github.com/DannyBen/madness/workflows/Test/badge.svg)](https://github.com/DannyBen/madness/actions?query=workflow%3ATest)
7
- [![Maintainability](https://api.codeclimate.com/v1/badges/fa440dc4dbf895734d74/maintainability)](https://codeclimate.com/github/DannyBen/madness/maintainability)
8
-
9
- ---
10
-
11
5
  Madness is a command line server for rendering markdown documents in your
12
6
  browser. It is designed to facilitate easy development of internal
13
7
  markdown-based documentation sites.
@@ -155,8 +149,8 @@ auto_toc: true
155
149
  highlighter: true
156
150
 
157
151
  # enable mermaid diagramming and charting
158
- # put your diagram code inside <div class='mermaid'>...</div>
159
- mermaid: false
152
+ # put your diagram code inside ```mermaid ... ``` code fence
153
+ mermaid: true
160
154
 
161
155
  # enable the copy to clipboard icon for code snippets
162
156
  copy_code: true
@@ -270,19 +264,7 @@ file or a directory in the same directory as the file itself.
270
264
  When the `mermaid` option is enabled, you can embed Mermaid diagrams in your
271
265
  document using either of the following methods:
272
266
 
273
- 1. **Using a `<div>` block with `mermaid` class**:
274
-
275
- ```html
276
- <div class="mermaid">
277
- graph TD;
278
- A-->B;
279
- A-->C;
280
- B-->D;
281
- C-->D;
282
- </div>
283
- ```
284
-
285
- 2. **Using a code fence with `mermaid` language specifier**:
267
+ **Using a code fence with `mermaid` language specifier**:
286
268
 
287
269
  ````markdown
288
270
  ```mermaid
@@ -293,6 +275,18 @@ document using either of the following methods:
293
275
  C-->D;
294
276
  ```
295
277
  ````
278
+
279
+ **Using a `<div>` block with `mermaid` class**:
280
+
281
+ ```html
282
+ <div class="mermaid">
283
+ graph TD;
284
+ A-->B;
285
+ A-->C;
286
+ B-->D;
287
+ C-->D;
288
+ </div>
289
+ ```
296
290
 
297
291
  ### Table of Contents Generation
298
292