Aliased Links in Tables

It seems that when aliased links are placed in tables, a paragraph tag is automatically inserted after the link.

| [aliased links|] add unwanted paragraphs in tables

The resulting HTML for the table row is as follows. Notice the extra paragraph after the link.

<td class='confluenceTd'> 
	<a  href='' class='ucern-link'>aliased links</a>

<p> add unwanted paragraphs in tables</p></td>

Is this a bug or known issue? Is there any workaround to this problem (e.g. alternate syntax)?

2 answers

1 accepted

5 votes
Accepted answer

Hi Shelley,

Have you installed the Confluence source editor add-on? This adds a special icon to the editor that allows you to hand manipulate the storage format (xhtml) thus the ability to fine tune the html tags that are automatically added to the editor.

Hope this helps!

Thanks, but is the paragraph tag really expected by default? It seems odd that I would need to install a special add-on to manipulate the resulting markup in this simple case. This seems like a bug or at least a major limitation of the confluence syntax.

Hi Shelley,

If the problem is cosmetic issue, you could also add the following stylesheet to tweak the margin.

.confluenceTh p, .confluenceTd p {
	margin-bottom:0 !important;

Hope it helps

Thanks, but this is not just a cosmetic issue; it's a syntax issue. I can workaround the resulting display using custom styles, but the markup is still incorrect.

( Incorrect markup causes problems for browsers that don't display styles and for formats other than HTML clients, such as when the page is exported to PDF or Word. )

Also, just to clarify, setting the margins alone is not sufficient, because the paragraph is a block element and will still appear on a new line. Something more like the following would be needed to workaround the resulting styled markup:

.confluenceTh p, .confluenceTd p {
    display: inline !important;

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Dec 18, 2018 in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

477 views 3 18
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you