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

Workaround redcarpet formatting issues #17

Merged
merged 1 commit into from
Jun 12, 2018
Merged

Conversation

tessereth
Copy link
Contributor

Buildkite uses redcarpet to render the markdown and redcarpet has some issues with nested html block elements. Basically if you have:

<details>
<details>
</details>
</details>

Redcarpet thinks the first </details> is the end of the HTML content and parses everything after that as markdown, causing formatting issues. The easiest solution I can see is to indent the nested content but (a) haml no longer supports pretty formatting the output and (b) we can't just blindly indent all the contents because of the <pre> elements. So this indents just the nested</details> lines which is a dodgy hack but it works so /shrug.

@tessereth tessereth merged commit 981493f into master Jun 12, 2018
@tessereth tessereth deleted the workaround-redcarpet branch June 12, 2018 04:23
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

1 participant