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

Support Inline_raw_html #100

Open
tiensonqin opened this issue Sep 22, 2021 · 2 comments
Open

Support Inline_raw_html #100

tiensonqin opened this issue Sep 22, 2021 · 2 comments

Comments

@tiensonqin
Copy link
Collaborator

logseq/logseq#2843

@gavento
Copy link

gavento commented Dec 9, 2021

Example of the issue: the block <b>foo</b> bar <b>baz</b> wub. is translated as

<div class="block-body">
  <div class="raw_html"><b>foo</b></div>
  <div class="is-paragraph"> bar <span><b>baz</b></span> wub.</div>
</div>

which renders as
image


Starting the line with normal text renders as expected: Hello <b>from</b> a <b>beautiful</b> world! is translated as

<span><span class="inline">
Hello <span><b>from</b></span> a <span><b>beautiful</b></span> world!
</span></span>

which renders as
image

@daviddavo
Copy link

I have found the same problem while trying to use multiple ruby tags in a paragraph. I have to manually enclose the whole paragraph in <span> tags so it doesn't break the phrase.

To replicate it, just use a <b> mid-sentence:

<b>Hello</b> Wor<b>ld!</b>

Which renders as:
image

If you add a space before the second <b> tag, it works, but it shows a space mid-word.

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

3 participants