@markdoc/markdoc 0.5.3 → 0.5.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@markdoc/markdoc",
3
3
  "author": "Ryan Paul",
4
- "version": "0.5.3",
4
+ "version": "0.5.4",
5
5
  "description": "A text markup language for documentation",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.mjs",
@@ -145,6 +145,8 @@ regular_word_with_underscores
145
145
 
146
146
  \\> Blockquote
147
147
 
148
+ Text > not a blockquote
149
+
148
150
  \\# Heading
149
151
 
150
152
  \\### Heading
package/src/formatter.ts CHANGED
@@ -224,7 +224,7 @@ function* formatNode(n: Node, o: Options = {}) {
224
224
  yield* escapeMarkdownCharacters(content, /[*_~]/g);
225
225
  } else {
226
226
  // Escape > blockquote, * list item, and heading
227
- yield* escapeMarkdownCharacters(content, /^\*|#+\s|>/);
227
+ yield* escapeMarkdownCharacters(content, /^\*|#+\s|^>/);
228
228
  }
229
229
  }
230
230