pollen-users
pollen-users copied to clipboard
Inserting line breaks in `quadwriter/markup`
How can one insert a hard line break within a paragraph whilst in the #lang quadwriter/markup language?
#lang quadwriter/markup
This should be the first line. ???
This should be the second line.
In the docs, it says that the '(line-break) q-expression does this in the #lang quadwriter language, but I'm not sure how to access this here. The documentation indicates that one may insert arbitrary q-expressions with the ◊q{...} tag, but I don't know how to go from there since '(line-break) isn't an attribute. ◊q{'(line-break)} merely treats '(line-break) as text, while ◊q['(line-break)] or ◊q[(line-break)] trigger unbound identifier errors in quote and line-break, respectively.
I also thought it might be something like ◊(line-break) or ◊((line-break)), but these result in the same error.
Use ◊(br):
#lang quadwriter/html
This should be the first line. ◊(br)
This should be the second line.
Separately, I agree that quadwriter/markup is a misleading name, since “markup” also refers to a lower-level concept. So I’ve renamed it quadwriter/html, which is closer to the idea.
Ahh, I see, thank you!