pollen-users icon indicating copy to clipboard operation
pollen-users copied to clipboard

Inserting line breaks in `quadwriter/markup`

Open jopetty opened this issue 5 years ago • 2 comments

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.

jopetty avatar Nov 29 '20 19:11 jopetty

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.

mbutterick avatar Nov 29 '20 20:11 mbutterick

Ahh, I see, thank you!

jopetty avatar Nov 29 '20 20:11 jopetty