Text align and Italic
See original GitHub issueIt 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:
- Created 4 years ago
- Comments:9 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve fixed it in v1.0.6 … it was actually an issue with nested/cascaded tags.
<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](https://user-images.githubusercontent.com/30310399/65080532-5e0f8100-d956-11e9-83ee-0eb485d37a0b.png)
Here is the same output in our UI’s text field which uses the vue2-editor package
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.