nattoppet 2.1.0 → 2.1.1

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.
Files changed (3) hide show
  1. package/package.json +5 -5
  2. package/readme.md +26 -3
  3. package/stdlib.js +1 -1
package/package.json CHANGED
@@ -2,13 +2,13 @@
2
2
  "name": "nattoppet",
3
3
  "description": "A tiny macro-based markup language for blogging",
4
4
  "author": "Shiwei Zhang <ylxdzsw@gmail.com>",
5
- "version": "2.1.0",
5
+ "version": "2.1.1",
6
6
  "dependencies": {
7
- "coffeescript": "^2.5.1",
7
+ "coffeescript": "^2.6.1",
8
8
  "html-minifier": "^4.0.0",
9
- "katex": "^0.13.0",
10
- "less": "^4.1.1",
11
- "marked": "^2.0.1"
9
+ "katex": "^0.15.0",
10
+ "less": "^4.1.2",
11
+ "marked": "^4.0.10"
12
12
  },
13
13
  "bin": {
14
14
  "nattoppet": "./nattoppet.js",
package/readme.md CHANGED
@@ -1,10 +1,33 @@
1
1
  nattoppet
2
2
  =========
3
3
 
4
- A tiny markup language and several themes for making documents and slides as single-file bundled html.
4
+ A tiny markup language and several themes for making documents, slides, or web apps as single-file bundled html or
5
+ executable.
5
6
 
6
- ### Usage (no installation required)
7
+ ### Usage
8
+
9
+ compile a nattoppet file:
10
+
11
+ ```
12
+ $ npm exec nattoppet in.ymd > out.html
13
+ ```
14
+
15
+ compile a nattoppet file but don't minimize (for debugging):
16
+
17
+ ```
18
+ $ npm exec nattoppet in.ymd --dev > out.html
19
+ ```
20
+
21
+ watch a nattoppet file and rebuild it whenever it changes; open a browser to view the compiled page
22
+
23
+ ```
24
+ $ npm exec nattoppet-dev in.ymd
25
+ ```
26
+
27
+ build a double-clickable executable for the page
7
28
 
8
29
  ```
9
- $ npx nattoppet in.ymd > out.html
30
+ $ npm exec nattoppet-native init
31
+ $ (edit the metadata as needed)
32
+ $ npm exec nattoppet-native build in.ymd
10
33
  ```
package/stdlib.js CHANGED
@@ -99,7 +99,7 @@ module.exports = {
99
99
  },
100
100
 
101
101
  render_markdown(str) {
102
- return marked(str)
102
+ return marked.parse(str)
103
103
  },
104
104
 
105
105
  render_katex(str, displayMode=false) {