Skip to content
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

regex for block tags fixed to include h1-h6 #18

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

predragleka
Copy link

Added support for heading tags to be matched as block tags. Headings were matched against regex for open and close tags so content inside was pushed to new line. This isn't a big deal, but for our project we needed it to be placed inside one line.

@gajus
Copy link
Owner

gajus commented Feb 12, 2016

@predragleka Please remove the .idea addition for .gitignore.

@predragleka
Copy link
Author

Done. Sorry for that, did it out of habit.

@predragleka
Copy link
Author

Didn't figured out that regex is used in test. I fixed test regex to reflect updated regex in Indenter class

@predragleka predragleka closed this Mar 2, 2016
@predragleka predragleka reopened this Mar 2, 2016
…/a></strong></p> would push <strong> tag into new line so output would look like this

<p>
    <strong><a>text</a></strong>
</p>
now it stays in one line
* Test row added into test HTML to check this case
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants