Skip to content
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

How do I add a dash in front of a line? #98

Open
naturalmechanics opened this issue Feb 4, 2025 · 1 comment
Open

How do I add a dash in front of a line? #98

naturalmechanics opened this issue Feb 4, 2025 · 1 comment

Comments

@naturalmechanics
Copy link

Consider the code:

li
                    span Adapt and evolve
                    — adjust forms as your business grows and requirements change.

I only want some style to be put in the span, and continue with the remaining text in the li tag.

If I use — or – I get:

`

.dub/packages/diet-ng-1.8.3/diet-ng/source/diet/defs.d(34,3): Error: "file.dt(25): "features.dt(25): Expected node text separated by a space character or end of line, but got 'mdash; adjust forms as your business grows and requirements change.'."`

`

If i use \- because a single dash is a inline D code, I get:

Expected node text separated by a space character or end of line, but got '\\- your website, landing pages, or customer portals\xe2\x80\x94for seamless data collection.'."

Please help.

@s-ludwig
Copy link
Member

s-ludwig commented Feb 4, 2025

The second line needs to add a "text node" specifier before the actual text payload:

li
                    span Adapt and evolve
                    | — adjust forms as your business grows and requirements change.

alternatively, you could also use the inline syntax:

li #[span Adapt and evolve] — adjust forms as your business grows and requirements change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants