-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: asciidoc yaml parsing #193
base: master
Are you sure you want to change the base?
Conversation
35e1b1d
to
988bd41
Compare
I just changed the PR to use lookbehind rather than a match, as the match could not cope with a the two |
Fixes the issue as described in hashobject#192 by checking the triple dash to be prefixed by either the start of the document, or the start of a new line. This does still allow for some content before the actual yaml.
988bd41
to
0861b0c
Compare
Again I just changed the PR, as I made a typo in the lookbehind syntax, causing false matches. |
this will be tricky one. We need to test this somehow. High risk it might break people's sites. |
maybe we can include couple of tests? |
Hi, @nicorikken Still working on this? Any news regarding @podviaznikov's suggestion? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Just to make @podviaznikov's feedback explicit.)
Fixes the issue as described in #192
by checking the triple dash to be prefixed by either the start of the document,
or the start of a new line. This does still allow for some content before the
actual yaml.