mbutterick / pollen-users

please use https://forums.matthewbutterick.com/c/typesetting/ instead
https://forums.matthewbutterick.com/c/typesetting/
52 stars 0 forks source link

Inserting line breaks in `quadwriter/markup` #79

Open jopetty opened 3 years ago

jopetty commented 3 years ago

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.

mbutterick commented 3 years ago

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.

jopetty commented 3 years ago

Ahh, I see, thank you!