question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Text align and Italic

See original GitHub issue

It does not handle text-align style and <em> tag:

< p style="text-align: center;"> <span style="font-size: 14px;"><em><strong>testing...</strong></em></span> < /p>

result:

{ "text":"testing...", "bold":true, "style":["html-strong","html-em","html-span","html-p"] }

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Aymkdncommented, Aug 29, 2019

I’ve fixed it in v1.0.6 … it was actually an issue with nested/cascaded tags.

0reactions
SunnysideAaroncommented, Sep 17, 2019

<p>Here I am.</p><p><br></p><p>I'm another sentence two lines down. <s>Some strike through.</s></p><p><br></p><ul><li>list item 1</li><li class="ql-indent-1">list item 1.2</li><li>list item 2</li></ul><p><br></p><p><br></p>

this produces Screen Shot 2019-09-17 at 2 18 23 PM

Here is the same output in our UI’s text field which uses the vue2-editor package

Screen Shot 2019-09-17 at 2 19 50 PM

There are 3 problems: No strike through 2nd sentence is on line 2 instead of line 3. Lists aren’t displayed at all.

Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Alignment, font styles, and horizontal rules in HTML documents
With CSS, the text-align property is inherited from the parent element, ... To specify blue, italic text in a paragraph with cascading style...
Read more >
How to italicize text in CSS ? - GeeksforGeeks
In this article, we will see how to make a text italic using CSS. To italicize text in any webpage the CSS font-style...
Read more >
font-style - CSS: Cascading Style Sheets - MDN Web Docs
The font-style CSS property sets whether a font should be styled with a normal, italic, or oblique face from its font-family.
Read more >
font-style - CSS-Tricks
The font-style property allows you to make text appear italicized (i.e. sloped, or slanted).
Read more >
CSS font-style property - W3Schools
Definition and Usage. The font-style property specifies the font style for a text. ... italic, The browser displays an italic font style, Demo...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found