summaryrefslogtreecommitdiff
path: root/packages/astro-parser/src
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@matthewphillips.info> 2021-07-29 16:20:49 -0400
committerGravatar GitHub <noreply@github.com> 2021-07-29 16:20:49 -0400
commitcd2b5df49c28a2fa6454ab71449fd20ba9ef31f9 (patch)
treeae753ad84d0b98d60efabb396d684b08bf2c2e47 /packages/astro-parser/src
parentcb7c9d5f82c9b557665299b2ec5f08e3da8606c5 (diff)
downloadastro-cd2b5df49c28a2fa6454ab71449fd20ba9ef31f9.tar.gz
astro-cd2b5df49c28a2fa6454ab71449fd20ba9ef31f9.tar.zst
astro-cd2b5df49c28a2fa6454ab71449fd20ba9ef31f9.zip
Allow triple-dashes in markdown (#938)
* Allow triple-dashes in markdown * Changeset * Remove the .only
Diffstat (limited to 'packages/astro-parser/src')
-rw-r--r--packages/astro-parser/src/parse/state/text.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/astro-parser/src/parse/state/text.ts b/packages/astro-parser/src/parse/state/text.ts
index 020d066fd..b6509caf9 100644
--- a/packages/astro-parser/src/parse/state/text.ts
+++ b/packages/astro-parser/src/parse/state/text.ts
@@ -13,7 +13,7 @@ export default function text(parser: Parser) {
if (parser.current().name === 'code') {
return !parser.match('<') && !parser.match('{');
}
- return !parser.match('---') && !parser.match('<') && !parser.match('{') && !parser.match('`');
+ return !parser.match('<') && !parser.match('{') && !parser.match('`');
};
while (parser.index < parser.template.length && shouldContinue()) {