Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

how to convert html to confluence macro format

pratik raj November 8, 2015

I have html tag in my confluence page 

<div class="warningMacro">This is a div example</div>

I wanan convert it to 

 

{div:class=warningMacro}This is a div example{div}

 

any idea how to do that?

 

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
pratik raj November 9, 2015

@Nelson Carranza ,Gabrielle Bautista I have aroung 1000 Pages cant think of putting macro in each Page. I wanna some global thing Like a plugin or Some other things ...

0 votes
Nelson Carranza
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 9, 2015

H Pratik,

Here is the documentation an examples

https://confluence.atlassian.com/doc/info-tip-note-and-warning-macros-51872369.html

 

If you can apply css as  this answer explain https://answers.atlassian.com/questions/99055

you can add the following 

 

.warningMacro{
	background: #fff;
	border-color: 1px solid #f6c342;
	border-top: 1px solid #f6c342;
	border-right: 1px solid #f6c342;
	border-bottom: 1px solid #f6c342;
	border-left: 1px solid #f6c342;
	color:   #333;
	border-radius:  3px;
	color:   #333;
	line-height:  20px;
	margin:  20px 0 0 0;
	overflow-wrap:  break-word;
	padding-bottom:  20px;
	padding-left:  60px;
	padding-right:  40px;
	padding-top:  20px;
	position:  relative;
	word-wrap:  break-word; word-break:  break-word;
}
.warningMacro:before{
	background-color:#f6c342;
	bottom: 0;content: '';
	left: 0;
	position: absolute;
	top: 0;
	width: 40px;
}
.warningMacro:after{
	content: "\f1b3";
	font-family: "Atlassian Icons";
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    font-style: normal;
    font-weight: normal;
    left: 12px;
    line-height: 1;
    margin-top: -8px;
    position: absolute;
    speak: none;
    top: 50%;
}

 

 

0 votes
GabrielleJ
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 8, 2015

How about putting it in inside an html macro?

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events