]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5333 Update links style inside markdown text
authorStas Vilchik <vilchiks@gmail.com>
Wed, 9 Jul 2014 07:17:09 +0000 (13:17 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 9 Jul 2014 07:17:09 +0000 (13:17 +0600)
sonar-server/src/main/hbs/coding-rules/coding-rules-detail.hbs
sonar-server/src/main/hbs/issues/issue.hbs
sonar-server/src/main/less/ui.less

index f10a2691851f7039997df5cc665c56ea5219796d..d2ae4a8a2b6fc00c591e4308dc8c56ffe88ba8cd 100644 (file)
@@ -48,7 +48,7 @@
   {{/if}}
 </ul>
 
-<div class="coding-rules-detail-description rule-desc">{{{htmlDesc}}}</div>
+<div class="coding-rules-detail-description rule-desc markdown">{{{htmlDesc}}}</div>
 
 {{#if templateKey}}
   {{#if canWrite}}
@@ -64,7 +64,7 @@
   <div class="coding-rules-detail-description coding-rules-detail-description-extra">
     <div id="coding-rules-detail-description-extra">
       {{#if htmlNote}}
-        <div class="rule-desc marginbottom10">{{{htmlNote}}}</div>{{/if}}
+        <div class="rule-desc marginbottom10 markdown">{{{htmlNote}}}</div>{{/if}}
       {{#if canWrite}}<div class="button-group">
         <button id="coding-rules-detail-extend-description">{{t 'coding_rules.extend_description'}}</button>
       </div>{{/if}}
index cbdb2c11765b560e2c36928c9260a257b11cec5d..ac3a80fd69e91aeb20662b28979904bf66a30740 100644 (file)
                data-confirm-msg="{{t 'issue.comment.delete_confirm_message'}}">{{t 'delete'}}</a>
           {{/if}}
         </h4>
-        {{{show html htmlText}}}
+        <div class="markdown">{{{show html htmlText}}}</div>
       </div>
     {{/each}}
   </div>
index b4e98b5bd54e00ac6be13b03c49e6cd21917860c..1b87bae4f2a0d88976c4052ae4a624431c700906 100644 (file)
@@ -292,3 +292,8 @@ input[type=button] {
   background-color: @red;
   color: #fff;
 }
+
+
+.markdown {
+  a { .underlined-link; }
+}