markdown-up 1.3.0 → 1.3.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/README.md +6 -4
  2. package/lib/app.js +4 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -25,8 +25,9 @@ Alternatively, you can change the default Markdown file by updating the markdown
25
25
 
26
26
  ```
27
27
  <script type="module">
28
- import {MarkdownUp} from 'https://craigahobbs.github.io/markdown-up/markdown-up/index.js';
29
- MarkdownUp.run(window, {'url': 'other.md'});
28
+ import {MarkdownUp} from 'https://craigahobbs.github.io/markdown-up/lib/app.js';
29
+ const app = new MarkdownUp(window, {'url': 'other.md'});
30
+ app.run();
30
31
  </script>
31
32
  ```
32
33
 
@@ -49,8 +50,9 @@ To view local Markdown files using markdown-up, try the
49
50
 
50
51
  ## Development
51
52
 
52
- This project is developed using [javascript-build](https://github.com/craigahobbs/javascript-build#readme). It was started
53
- using [javascript-template](https://github.com/craigahobbs/javascript-template#readme) as follows:
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)
55
+ and it was started using [javascript-template](https://github.com/craigahobbs/javascript-template#readme):
54
56
 
55
57
  ```
56
58
  template-specialize javascript-template/template/ markdown-up/ -k package markdown-up -k name 'Craig A. Hobbs' -k email 'craigahobbs@gmail.com' -k github 'craigahobbs'
package/lib/app.js CHANGED
@@ -1,6 +1,8 @@
1
1
  // Licensed under the MIT License
2
2
  // https://github.com/craigahobbs/markdown-up/blob/main/LICENSE
3
3
 
4
+ /** @module lib/app */
5
+
4
6
  import {ElementApplication, encodeHashID, getHashID} from 'element-app/lib/app.js';
5
7
  import {decodeQueryString, encodeQueryString} from 'schema-markdown/index.js';
6
8
  import {getBaseURL, getMarkdownTitle, isRelativeURL, markdownElements, parseMarkdown} from 'markdown-model/index.js';
@@ -37,7 +39,7 @@ struct MarkdownUp
37
39
  # Application command union
38
40
  union Command
39
41
 
40
- # Render the application's hash parameter documentation
42
+ # Display the application's hash parameter documentation
41
43
  int(== 1) help
42
44
 
43
45
  # Show the URL's Markdown text
@@ -48,7 +50,7 @@ union Command
48
50
  /**
49
51
  * MarkdownUp, a web application for viewing Markdown files.
50
52
  *
51
- * Markdown up is an
53
+ * MarkdownUp up is an
52
54
  * [Element Application]{@link https://craigahobbs.github.io/element-app/module-lib_app.ElementApplication.html}.
53
55
  *
54
56
  * @extends ElementApplication
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "markdown-up",
4
- "version": "1.3.0",
4
+ "version": "1.3.1",
5
5
  "description": "JavaScript Markdown viewer application",
6
6
  "keywords": [
7
7
  "markdown",