Community forum for knowledge and support

Updated 2 months ago

A static page generator for build mode

At a glance

The community member is building a static page generator and wants to ensure consistent formatting, including the ability to bold or underline text. They are unsure if this is possible when the text is a component with props. Other community members discuss potential solutions, such as using a rich text element or a custom code snippet that handles bolding and underlining differently for headings and paragraphs. The final solution seems to satisfy the original poster's requirements.

Hey All, I'm putting together a static page generator for build mode. I'd like to have everything consistent and easy to use for our marketer. However I'm not sure if there's any way to bold parts of the text or underline when these are components in page slots and the elements have props.

Attachment
image.png
M
Á
4 comments

yeah interesting - what happens if that text spot was a rich text element? Do you get that kind of detail then or no?

I haven't thought about that. By the way I also found a nice solution for the underline

I want the client to have the freedom of highlight parts of the text without messing up the design. So I made a custom code snippet, when you set the text bold with span on headings, it's actually underlines it, but when Client does the same for paragraphs, it's only bolding as it should be.

Attachment
image.png

Ahh you're a genius, it's so perfect now! Exactly how I wanted it to be.

Attachment
image.png
Add a reply
Sign up and join the conversation on Slack