Your question is unclear.
Please provide more information, and be as specific as possible.
- What do you want to accomplish?
- What have you already tried?
- What problems did you encounter?
Also, please be sure that you have included all relevant code and/or a link to the page in question.
You might also consider making a
reduced test case using an online tool like
jsfiddle.
What "markdown editor"?
"Markdown" is a text parser. Some WYSIWYG editors use markdown; if that's what you're talking about, please specify which editor you're using. Furthermore, you don't show any Markdown usage in your examples.
(Also, your title refers to a "PHP Editor", which -to me- implies a code editor or IDE, and seems entirely unrelated to what you talk about in the body of the thread.)
What do you mean by "broken lines"?
You seem to use "broken lines" to refer both to the border around the image, and to literal line breaks in your HTML markup (and, possibly, to the dotted outline normally displayed around hyperlinks). However, what you say below makes me suspect you don't really mean any of these.
What do you mean by "will not render"?
Both the examples you give are HTML markup, and are functionally equal. They will be rendered identically in any browser.
What "PHP"?
There is no PHP code in your examples. Are you referring to the Markdown parser itself?
---------------
If all you want to accomplish is this
HTML Code:
<a href="http://somedomain.com" rel="nofollow">
<img src="http://somedomain.com/images/someimage.png" border="0"></a><br>
as opposed to this
HTML Code:
<a href="http://somedomain.com" rel="nofollow">
<img src="http://somedomain.com/images/someimage.png"
border="0"></a><br>
(which is not, as you seem to be implying, "on the same line as the rest of the link")
Then just write it that way - no PHP, beyond, possibly, echo, is required.
Bookmarks