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

Paragraph styling #16

Open
Brett-Best opened this issue Apr 12, 2021 · 1 comment
Open

Paragraph styling #16

Brett-Best opened this issue Apr 12, 2021 · 1 comment

Comments

@Brett-Best
Copy link

It looks like the following function isn’t called anywhere, not sure if it should be or not.

/// Define the paragraph text style.
/// - Parameter text: The text string captured from paragraph.
func paragraph(text: String) -> Text

I ended up having to use

func paragraphBlock(view: AnyView) -> AnyView

instead.

@dasautoooo
Copy link
Owner

dasautoooo commented May 13, 2021

Hi @Brett-Best ,
Parma treats paragraph as an HTML block object, thus func paragraph(text: String) -> Text does nothing. It might be removed in future versions.

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