htmd 0.1.0 → 0.2.0

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: 388f231123ba73796dd205a9f4237c50bebc7411ee55465fe953b04f201ea53f
4
- data.tar.gz: 14befeec07f2a1fe7c8a672078deeed6b52e23129c367288718ea013e8c828b1
3
+ metadata.gz: 814e9dce8aba891ae650abc53b7604f2315622dc8f13c998b2ea60f15c0781d9
4
+ data.tar.gz: ef64bbceca8514ea15824f58079ea0409ba82128672955e0adcdc2dfc6c9a4ec
5
5
  SHA512:
6
- metadata.gz: 271f38c94c38cfac8164ae509c45736bea722ea0750101dd9e9e6df1f8afb90d9fc75f0f74ce4c3c60629de73dd8d85bb4ceb77c6e110a8caab0da031976fc5e
7
- data.tar.gz: fc591144c964b51af8b0fc7fb73b3ff43db82a9971ea2847089868c6e729801e2737fba8b6f398a2f2e6203b6fb1eff42ca4789e6e7fb88641cbbd737bf36cfd
6
+ metadata.gz: 42ac747ed3959aaa04679e74633c02a1c390e62705b0c8b2ee74cdb90569e9087098a74b4f0235f4d62d722387cce27c9a3b83126869ce10a4d8832c71c845f1
7
+ data.tar.gz: 766c1b2ede22b0331430c844869410be4acb7f1c67e379e16193c0de6b0fd4b83c0c544546c1770dd95ff7baa667413d98d626ed069b7ef591ac00447ca33ed9
data/lib/htmd/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Htmd
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -11,6 +11,23 @@ body {
11
11
  margin: 2em auto;
12
12
  padding: 0 2em;
13
13
  }
14
+ table {
15
+ border-collapse: collapse;
16
+ border-spacing: 0;
17
+ margin: 1em 0;
18
+ max-width: 100%;
19
+ overflow: auto;
20
+ }
21
+ th, td {
22
+ border: 1px solid #d0d7de;
23
+ padding: 0.4em 0.8em;
24
+ vertical-align: top;
25
+ }
26
+ th {
27
+ font-weight: 600;
28
+ background: #f6f8fa;
29
+ }
30
+ tbody tr:nth-child(even) { background: #fbfcfd; }
14
31
  h1, h2, h3, h4, h5, h6 { position: relative; }
15
32
  a.anchor {
16
33
  position: absolute;
@@ -38,7 +55,22 @@ a.anchor::before {
38
55
  h1:hover a.anchor::before, h2:hover a.anchor::before, h3:hover a.anchor::before,
39
56
  h4:hover a.anchor::before, h5:hover a.anchor::before, h6:hover a.anchor::before,
40
57
  a.anchor:focus::before { visibility: visible; }
58
+ pre.mermaid { text-align: center; }
41
59
  </style>
60
+ <script type="module">
61
+ const blocks = document.querySelectorAll('pre[lang="mermaid"]');
62
+ if (blocks.length) {
63
+ for (const block of blocks) {
64
+ const diagram = document.createElement("pre");
65
+ diagram.className = "mermaid";
66
+ diagram.textContent = block.textContent;
67
+ block.replaceWith(diagram);
68
+ }
69
+ const { default: mermaid } = await import("https://cdn.jsdelivr.net/npm/mermaid@11.4.1/dist/mermaid.esm.min.mjs");
70
+ mermaid.initialize({ startOnLoad: false });
71
+ await mermaid.run();
72
+ }
73
+ </script>
42
74
  </head>
43
75
  <body></body>
44
76
  </html>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: htmd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oren Mittman