-
Notifications
You must be signed in to change notification settings - Fork 10
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
Markdown rendering of description can be surprising #225
Comments
Looking at the raw source which is present inside the html, the original quantity of newlines is present, but it's one huge data-chunk, as opposed to split up ones. The full raw text from the .feature file is present in this stream. A partial example is
|
FWIW, I think we are slowly rolling towards having some kind of options mechanism for the HTML formatter. There's stuff like #181 and also theming - nothing has yet been compelling enough on its own, but maybe collectively it's worth a look.
Minor point, but rather than a monospace font I think we'd just use the regular font and |
This seems to be the loophole? |
Ha! So maybe we can just turn that on in order rendering component? Looks like we might need https://github.com/remarkjs/remark-breaks maybe? |
π thanks @davidjgoss! |
π€ What's the problem you're trying to solve?
See this comment
People are surprised when deliberate newlines disappear when their features are rendered.
β¨ What's your proposed solution?
I suggest adding a
title
element somewhere that contains the original raw text from thedescription
field so there's a bit more transparency about what's happening.β Have you considered any alternatives or workarounds?
We could also add some kind of option to toggle markdown rendering (and if markdown's disabled, just use a fixed-width font for the description)
π Any additional context?
https://cucumber.io/blog/bdd/user-stories-and-bdd-features-are-not-stories/ π
This text was originally generated from a template, then edited by hand. You can modify the template here.
The text was updated successfully, but these errors were encountered: