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

Fix markdown partials in markdown partials #81

Merged
merged 3 commits into from
Dec 8, 2018

Conversation

lukasschlueter
Copy link
Contributor

@lukasschlueter lukasschlueter commented Dec 8, 2018

Fix for gobuffalo/docs#412

The markdown parser adds an empty line at the end of the generated html.
If the lines after the <%= partial(...) %> are indented by at least 4 spaces, they get interpreted as code (which is following https://guides.github.com/features/mastering-markdown/).

This PR strips the empty line at the end to change this behavior.

@lukasschlueter lukasschlueter changed the title WIP: Fix markdown partials in markdown partials Fix markdown partials in markdown partials Dec 8, 2018
@lukasschlueter lukasschlueter merged commit 290bc52 into master Dec 8, 2018
@lukasschlueter lukasschlueter deleted the fix-markdown-partials branch December 8, 2018 22:00
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