-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
enh(asciidoc) Support level 5 sections #2903
Conversation
I'm confused the site you linked to has I'm not sure why they have the 0... since is a line really a title without any
Is also a possibility, no? |
The examples on their doc site seem to contradict the whole |
No. I think the regular expression
I think a reason they used
|
Thanks @il3ven for taking care of it. You got it right.
It's two equal signs ( |
It totally does, and I know that. To group the == you'd need (==) of course. That whole
I don't think we care, it'll still match as a "section" for us, no?
Nope.
A single equal, followed by 0-5 more... otherwise known to normal people as "1-6 equals" LOL. So |
Ah ah ah I got tricked 😬
On second thought, you can have section title level 0 (i.e., a single |
Resolves #2868
Changes
Updated regexp for sections in
src/languages/asciidoc.js
Before
After
======
that is why changed(={1,5})
to(={1,6})
=
can be followed by a space or a tab. So, added[ \t]
.Changes are based upon https://github.com/asciidoctor/asciidoctor/blob/697d7171830f3dc757175bc29b7eb528d4cdb4b5/lib/asciidoctor/rx.rb#L239
Checklist
CHANGES.md
AUTHORS.txt
, under Contributors