markupeditor 0.9.4 → 0.9.5

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
@@ -63,6 +63,20 @@ a [VSCode extension](https://github.com/stevengharris/markupeditor-vs).
63
63
  You can try the MarkupEditor out right from the [project web site](https://stevengharris.github.io/markupeditor-base/). The web site has all
64
64
  the information you need to use the MarkupEditor in your application.
65
65
 
66
+ If you have `npx` installed, you can open the MarkupEditor on the demo page using
67
+ `npx markupeditor https://stevengharris.github.io/markupeditor-base/demo/demo.html`.
68
+ This uses the `muedit` script provided with the project and starts a node/express server
69
+ on port 3000 by default.
70
+
71
+ ```
72
+ $ npx markupeditor https://stevengharris.github.io/markupeditor-base/demo/demo.html
73
+ Need to install the following packages:
74
+ markupeditor@0.9.4
75
+ Ok to proceed? (y) y
76
+
77
+ Server listening at http://localhost:3000
78
+ ```
79
+
66
80
  ## Install
67
81
 
68
82
  Clone the repository.
@@ -91,7 +105,7 @@ Build the project.
91
105
  ```
92
106
  $ npm run build
93
107
 
94
- > markupeditor@0.9.0 build
108
+ > markupeditor@0.9.4 build
95
109
  > rollup -c
96
110
 
97
111
 
@@ -122,7 +136,7 @@ contents of the "home" page.
122
136
  ```
123
137
  $ npm run docs
124
138
 
125
- > markupeditor@0.9.0 predocs
139
+ > markupeditor@0.9.4 predocs
126
140
  > sh predocs.sh && jsdoc -c jsdoc.json
127
141
 
128
142
  Updating ./docs dependencies...
@@ -132,7 +146,7 @@ cp -f ./styles/markup.css ./docs/styles/markup.css
132
146
  cp -f ./styles/mirror.css ./docs/styles/mirror.css
133
147
  cp -f ./styles/toolbar.css ./docs/styles/toolbar.css
134
148
 
135
- > markupeditor@0.9.0 docs
149
+ > markupeditor@0.9.4 docs
136
150
  > node ./docs/index.js
137
151
 
138
152
  Server listening at http://localhost:3000
@@ -145,8 +159,10 @@ test the web site locally.
145
159
 
146
160
  ## Resources
147
161
 
148
- Refer to the [Resources](https://stevengharris.github.io/markupeditor-base/#resources) section of the [project web site](https://stevengharris.github.io/markupeditor-base/)
149
- for links to documentation, demos, and other projects using the MarkupEditor.
162
+ You can start with the [MarkupEditor Developer's Guide](https://stevengharris.github.io/markupeditor-base/guide/index.html),
163
+ or you can check out the [Resources](https://stevengharris.github.io/markupeditor-base/#resources) section of
164
+ the [project web site](https://stevengharris.github.io/markupeditor-base/) for links to documentation, demos, and
165
+ other projects using the MarkupEditor.
150
166
 
151
167
  ## Acknowledgements
152
168
 
@@ -23019,31 +23019,27 @@ const undoInputRule = (state, dispatch) => {
23019
23019
  /**
23020
23020
  Converts double dashes to an emdash.
23021
23021
  */
23022
- const emDash = new InputRule(/--$/, "—", { inCodeMark: false });
23022
+ new InputRule(/--$/, "—", { inCodeMark: false });
23023
23023
  /**
23024
23024
  Converts three dots to an ellipsis character.
23025
23025
  */
23026
- const ellipsis = new InputRule(/\.\.\.$/, "…", { inCodeMark: false });
23026
+ new InputRule(/\.\.\.$/, "…", { inCodeMark: false });
23027
23027
  /**
23028
23028
  “Smart” opening double quotes.
23029
23029
  */
23030
- const openDoubleQuote = new InputRule(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/, "“", { inCodeMark: false });
23030
+ new InputRule(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/, "“", { inCodeMark: false });
23031
23031
  /**
23032
23032
  “Smart” closing double quotes.
23033
23033
  */
23034
- const closeDoubleQuote = new InputRule(/"$/, "”", { inCodeMark: false });
23034
+ new InputRule(/"$/, "”", { inCodeMark: false });
23035
23035
  /**
23036
23036
  “Smart” opening single quotes.
23037
23037
  */
23038
- const openSingleQuote = new InputRule(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/, "‘", { inCodeMark: false });
23038
+ new InputRule(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/, "‘", { inCodeMark: false });
23039
23039
  /**
23040
23040
  “Smart” closing single quotes.
23041
23041
  */
23042
- const closeSingleQuote = new InputRule(/'$/, "’", { inCodeMark: false });
23043
- /**
23044
- Smart-quote related input rules.
23045
- */
23046
- const smartQuotes = [openDoubleQuote, closeDoubleQuote, openSingleQuote, closeSingleQuote];
23042
+ new InputRule(/'$/, "’", { inCodeMark: false });
23047
23043
 
23048
23044
  /**
23049
23045
  Build an input rule for automatically wrapping a textblock when a
@@ -23341,7 +23337,7 @@ function headingRule(nodeType, maxLevel) {
23341
23337
  // A set of input rules for creating the basic block quotes, lists,
23342
23338
  // code blocks, and heading.
23343
23339
  function buildInputRules(schema) {
23344
- let rules = smartQuotes.concat(ellipsis, emDash), type;
23340
+ let rules = [], type;
23345
23341
  if (type = schema.nodes.blockquote) rules.push(blockQuoteRule(type));
23346
23342
  if (type = schema.nodes.ordered_list) rules.push(orderedListRule(type));
23347
23343
  if (type = schema.nodes.bullet_list) rules.push(bulletListRule(type));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markupeditor",
3
- "version": "0.9.4",
3
+ "version": "0.9.5",
4
4
  "description": "A web component and API for WYSIWYG HTML editing.",
5
5
  "keywords": [
6
6
  "wysiwyg",