markdown-up 1.7.1 → 1.7.4

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.md CHANGED
@@ -1,59 +1,75 @@
1
- # markdown-up
1
+ # MarkdownUp
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/markdown-up)](https://www.npmjs.com/package/markdown-up)
4
4
  [![GitHub](https://img.shields.io/github/license/craigahobbs/markdown-up)](https://github.com/craigahobbs/markdown-up/blob/main/LICENSE)
5
5
 
6
- [markdown-up Application](https://craigahobbs.github.io/markdown-up/)
6
+ [MarkdownUp](https://craigahobbs.github.io/markdown-up/)
7
+ is a Markdown viewer.
7
8
 
8
- **markdown-up** is a JavaScript application that renders Markdown files in your web browser. To use markdown-up, first,
9
- download the markdown-up application stub to the directory containing your Markdown files:
10
9
 
11
- ```
10
+ ## View Local Markdown Files
11
+
12
+ To view local Markdown files, use the
13
+ [MarkdownUp launcher](https://pypi.org/project/markdown-up/)
14
+ from a terminal prompt:
15
+
16
+ ~~~
17
+ pip install markdown-up
18
+ markdown-up
19
+ ~~~
20
+
21
+
22
+ ## Host Markdown Web Pages
23
+
24
+ To host a Markdown resource, download the MarkdownUp application stub to the directory containing
25
+ your Markdown files:
26
+
27
+ ~~~
12
28
  curl -O https://craigahobbs.github.io/markdown-up/static/index.html
13
- ```
29
+ ~~~
14
30
 
15
- To host your Markdown files locally, start a local static web server:
31
+ To test your Markdown page, start a local static web server:
16
32
 
17
- ```
33
+ ~~~
18
34
  python3 -m http.server
19
- ```
20
-
21
- By default, markdown-up opens the "README.md" file. To open another file, set the "url" hash parameter (i.e.
22
- "http://127.0.0.1:8000#url=other.md").
35
+ ~~~
23
36
 
24
- Alternatively, you can change the default Markdown file by updating the markdown-up application stub. For example:
37
+ By default, MarkdownUp fetches the "README.md" resource. To change the default resource, update the
38
+ application stub file, index.html. For example:
25
39
 
26
- ```
40
+ ~~~
41
+ ...
27
42
  <script type="module">
28
43
  import {MarkdownUp} from 'https://craigahobbs.github.io/markdown-up/lib/app.js';
29
44
  const app = new MarkdownUp(window, {'url': 'other.md'});
30
45
  app.run();
31
46
  </script>
32
- ```
47
+ ...
48
+ ~~~
33
49
 
34
- The following application options are defined:
50
+ To view a different Markdown resource, set the application's
51
+ ["url" hash parameter](https://craigahobbs.github.io/markdown-up/#cmd.help=1)
52
+ (i.e., "http://127.0.0.1:8000#url=other.md").
35
53
 
36
- - **fontSize** - The default font size, in points
37
54
 
38
- - **lineHeight** - The default line height, in em
55
+ ## MarkdownUp Application Options
39
56
 
40
- - **menu** - If false, the application menu is hidden
57
+ The MarkdownUp application supports the following options:
41
58
 
42
- - **url** - The default Markdown text resource URL
59
+ - **fontSize** - The default font size, in points
43
60
 
61
+ - **lineHeight** - The default line height, in em
44
62
 
45
- ## Viewing local Markdown files
63
+ - **menu** - If false, the application menu is hidden
46
64
 
47
- To view local Markdown files using markdown-up, try the
48
- [markdown-up command-line application](https://pypi.org/project/markdown-up/).
65
+ - **url** - The default Markdown resource URL
49
66
 
50
67
 
51
68
  ## Development
52
69
 
53
- markdown-up is an [Element Application](https://github.com/craigahobbs/element-app#readme).
54
- It is developed using [javascript-build](https://github.com/craigahobbs/javascript-build#readme)
70
+ MarkdownUp is developed using [javascript-build](https://github.com/craigahobbs/javascript-build#readme)
55
71
  and it was started using [javascript-template](https://github.com/craigahobbs/javascript-template#readme):
56
72
 
57
- ```
73
+ ~~~
58
74
  template-specialize javascript-template/template/ markdown-up/ -k package markdown-up -k name 'Craig A. Hobbs' -k email 'craigahobbs@gmail.com' -k github 'craigahobbs'
59
- ```
75
+ ~~~