> **Note** First paragraph with a **bold**.
>
> Second paragraph with a **bold**.
It renders a blockquote with two p with strong inside them.
The result is:
The problem is that when we do $this.find( "p > strong:first-child" ) it will get both p. Then, when we do $strong.text(), we'll the contents of both concatenated.
So, I changed the selection to $this.find( "p:first-child > strong:first-child" ), in order to get only the first strong of the first p in the blockquote.
Consider the following Markdown quote:
It renders a
blockquote
with twop
withstrong
inside them.The result is:
The problem is that when we do
$this.find( "p > strong:first-child" )
it will get bothp
. Then, when we do$strong.text()
, we'll the contents of both concatenated.So, I changed the selection to
$this.find( "p:first-child > strong:first-child" )
, in order to get only the firststrong
of the firstp
in theblockquote
.The result is the following: