@commte/mdbrowse 0.3.2 → 0.3.3

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.
package/README.ja.md CHANGED
@@ -47,7 +47,7 @@ cd mdbrowse
47
47
  ./install.sh
48
48
  ```
49
49
 
50
- `mdb`(と長いほうの `mdbrowse`)が `~/.local/bin` に、スタイルシートが `~/.config/mdbrowse/head.html` に入る。再インストールしても自分で編集したスタイルシートは上書きされない。配布時の状態に戻したいときは `--force` を付ける
50
+ `install.sh` は、実行に要る依存(Shiki)が無ければ npm で入れてから、`mdb`(と長いほうの `mdbrowse`)を `~/.local/bin` に、スタイルシートを `~/.config/mdbrowse/head.html` に置く。再インストールしても自分で編集したスタイルシートは上書きされない。配布時の状態に戻したいときは `--force` を付ける
51
51
 
52
52
  </details>
53
53
 
package/README.md CHANGED
@@ -47,7 +47,7 @@ cd mdbrowse
47
47
  ./install.sh
48
48
  ```
49
49
 
50
- This installs `mdb` (and the longer `mdbrowse`) into `~/.local/bin`, and the stylesheet into `~/.config/mdbrowse/head.html`. Your stylesheet is never overwritten on reinstall; pass `--force` when you do want the shipped one back.
50
+ `install.sh` pulls in the one runtime dependency (Shiki) with npm if it is not there yet, then installs `mdb` (and the longer `mdbrowse`) into `~/.local/bin` and the stylesheet into `~/.config/mdbrowse/head.html`. Your stylesheet is never overwritten on reinstall; pass `--force` when you do want the shipped one back.
51
51
 
52
52
  </details>
53
53
 
package/assets/head.html CHANGED
@@ -56,7 +56,7 @@
56
56
  body {
57
57
  max-width: var(--content-width);
58
58
  margin: 0 auto;
59
- padding: 32px 32px 160px;
59
+ padding: 80px 32px 160px;
60
60
  font-size: var(--font-size);
61
61
  line-height: var(--line-height);
62
62
  font-family: var(--font-family);
@@ -79,6 +79,8 @@
79
79
  h1:first-child { margin-top: 0; }
80
80
  p, ul, ol, blockquote, table, pre { margin: 0 0 16px; }
81
81
  a { color: var(--link); text-decoration: none; }
82
+ /* 訪問済みも同じ色にする。指定しないと環境によっては本文色に落ちて見分けが付かない */
83
+ a:visited { color: var(--link); }
82
84
  a:hover { text-decoration: underline; }
83
85
  code {
84
86
  font-family: var(--code-font-family); font-size: 85%;
package/bin/mdbrowse CHANGED
@@ -3,7 +3,7 @@
3
3
  # browser tab can stay open and just swap its contents.
4
4
  set -euo pipefail
5
5
 
6
- VERSION="0.3.2"
6
+ VERSION="0.3.3"
7
7
  PROG="$(basename "$0")"
8
8
  OUT="${MDBROWSE_OUT:-/tmp/mdbrowse.html}"
9
9
  case "$OUT" in
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commte/mdbrowse",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Preview the Markdown file you are editing in a real browser, with your own CSS, from any editor that can run a shell command. No server, no port.",
5
5
  "bin": {
6
6
  "mdbrowse": "bin/mdbrowse",