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.

<strong> inside <p> is broken

See original GitHub issue

My .js-file is longer, but this small example shows the problem:

      <p>
        Welcome to the <strong>Universal React Starter-kyt</strong>.
        This starter kyt should serve as the base for an advanced,
        server-rendered React app.
      </p>

turns into

<p>
  Welcome to the{" "}
  <strong>Universal React Starter-kyt</strong>
  .
        This starter kyt should serve as the base for an advanced,
        server-rendered React app.
</p>;

https://jlongster.github.io/prettier/#{"content"%3A" <p>\n Welcome to the <strong>Universal React Starter-kyt<%2Fstrong>.\n This starter kyt should serve as the base for an advanced%2C\n server-rendered React app.\n <%2Fp>\n"%2C"options"%3A{"printWidth"%3A80%2C"tabWidth"%3A2%2C"singleQuote"%3Afalse%2C"trailingComma"%3Afalse%2C"bracketSpacing"%3Atrue%2C"doc"%3Afalse}}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
rattrayalexcommented, Jan 25, 2017

fixed in https://github.com/jlongster/prettier/pull/455 though I might try to add more to that PR

0reactions
rattrayalexcommented, Jan 25, 2017

#455 is ready for review, and also adds support for extra newlines between jsx elems / text lines!

Read more comments on GitHub >

github_iconTop Results From Across the Web

<strong> not working inside <p> in Firefox - Stack Overflow
This only happens in Firefox – in Chrome and Safari all works. When I'm using <strong> inside a <li> all is working correct....
Read more >
Strong tag not working - HTML-CSS - The freeCodeCamp Forum
So I have been working through these exercices and have come across a problem: Wrap a strong tag around “Stanford University” inside the...
Read more >
How to wrap a strong tag around a word inside a <p ... - Quora
Use paragraph tags around paragraphs and style them to provide the amount of space you want to have between them. You should only...
Read more >
Tests pass when <strong> is used to wrap entire <p> element ...
Tests pass when <strong> is used to wrap entire <p> element in challenge Applied Visual Design: Use the strong Tag to Make Text...
Read more >
Paragraphs, Lines, and Phrases
Phrase elements: EM , STRONG , DFN , CODE , SAMP , KBD , VAR , CITE , ABBR , and ACRONYM ......
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