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

Inline html turning into it's own block when it starts a line. #70

Open
mdgriffith opened this issue Oct 21, 2020 · 1 comment
Open

Comments

@mdgriffith
Copy link
Contributor

Hello!

We have an inline html element for rendering a persons name and linking to their page in Blissfully. We noticed that if an HTML element is at the start of a line, it will be considered its own block, even if there's following text.

So,

<person name="Dillon" /> is fantastic!

will render as

[ HtmlBlock (HtmlElement "person" [{ name = "name", value = "Dillon" }] [])
, Paragraph [Text " is fantastic!"]
]

instead of

[ Paragraph 
    [ HtmlInline (HtmlElement "person" [{ name = "name", value = "Dillon" }] [])
    , Text " is fantastic!"
    ]
]

Our current workaround is to take the markdown source, and prepend a space to each line, which convinces the parser this is an inline thing.

This initially seemed related to #50, but after review, it seems a bit different.

❤️

@turboMaCk
Copy link

turboMaCk commented Mar 16, 2021

For me even:

hello <sub>subscript</sub>

gets always wrapped into

like <sub><p>subscript</p></sub>

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