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

Don't parse code block inside another code block #145

Merged
merged 1 commit into from
Jan 21, 2014

Conversation

nicholasserra
Copy link
Collaborator

close issues #88 and #89 and #95

@ghost ghost assigned joestump Jan 21, 2014
@@ -1564,6 +1564,9 @@ def _do_code_blocks(self, text):
)+
)
((?=^[ ]{0,%d}\S)|\Z) # Lookahead for non-space at line-start, or end of doc
# Lookahead to make sure this block isn't already in a code block.
# Needed when syntax highlighting is being used.
(?![^<]*\</code\>)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this is why a tokenizer is a good idea. Haha

@joestump
Copy link
Collaborator

This looks good to me. 👍

nicholasserra added a commit that referenced this pull request Jan 21, 2014
Don't parse code block inside another code block
@nicholasserra nicholasserra merged commit 5da4d0b into master Jan 21, 2014
@nicholasserra nicholasserra deleted the nick-fenced-indentation branch January 21, 2014 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants