micromark / micromark-extension-gfm-autolink-literal

micromark extension to support GFM autolink literals
https://unifiedjs.com
MIT License
7 stars 3 forks source link

crash on closing parenthesis after autolink #1

Closed ChristianMurphy closed 3 years ago

ChristianMurphy commented 3 years ago

Subject of the issue

Parser crashes when there is a closing parenthesis after autolink

Your environment

Steps to reproduce

const micromark = require("micromark/lib");
const gfmSyntax = require("micromark-extension-gfm");

micromark("www.a.)", "utf-8", { extensions: [gfmSyntax()] });

Expected behavior

Text should display as

www.a.)

Actual behavior

AssertionError [ERR_ASSERTION]: expected non-empty token (`literalAutolinkWwwPath`)
wooorm commented 3 years ago

www.a.)

^--- well wtf, GH...