Inserting line breaks in quadwriter/markup #79

Open
opened 3 years ago by jopetty · 2 comments
jopetty commented 3 years ago (Migrated from github.com)

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.

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 (Migrated from github.com)

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.

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 (Migrated from github.com)

Ahh, I see, thank you!

Ahh, I see, thank you!
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mbutterick/pollen-users#79
Loading…
There is no content yet.