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

Add support for Markdown paragraph & improve newline behavior #31

Merged
merged 11 commits into from Dec 7, 2016

Conversation

kevsmith
Copy link
Member

@kevsmith kevsmith commented Dec 6, 2016

Newlines inside paragraphs will generate hard line breaks. This is a departure from "standard" Markdown which requires an invisible delimiter (two spaces followed by a newline) for the same behavior.

See operable/greenbar_markdown#7

Kevin Smith added 6 commits November 28, 2016 16:03
Added `paragraph` nodes to tests. Also dealt with whitespace parsing
ripple effects created by introduction of `paragraph`.
- Fixed text node consolidation
- Removed unecessary newline filter passes
- Traverse entire AST tree, including nested children when inserting
  newline nodes into text nodes
Newlines inside paragraphs will generate hard line breaks. This is a
departure from "standard" Markdown which requires an invisible delimiter
(two spaces followed by a newline) for the same behavior.

See recent greenbar_markdown commits for the rationale behind this decision.
@kevsmith kevsmith added the review label Dec 6, 2016
@kevsmith kevsmith changed the title Add support for Markdown paragran & improve newline behavior Add support for Markdown paragraph & improve newline behavior Dec 6, 2016
Copy link
Collaborator

@christophermaier christophermaier left a comment

Choose a reason for hiding this comment

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

👍 , after greenbar_markdown dependency merges

@kevsmith kevsmith merged commit 9cfb205 into master Dec 7, 2016
@kevsmith kevsmith deleted the kevsmith/paragraph-children branch December 7, 2016 18:37
@kevsmith kevsmith removed the review label Dec 7, 2016
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.

None yet

2 participants