This repository has been archived by the owner on May 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from codiga/juli1/add-markdown-description
Add markdown + support shortcuts
- Loading branch information
Showing
7 changed files
with
168 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/main/java/io/codiga/plugins/jetbrains/actions/CodigaMarkdownDecorator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package io.codiga.plugins.jetbrains.actions; | ||
|
||
import com.github.rjeschke.txtmark.DefaultDecorator; | ||
|
||
public class CodigaMarkdownDecorator extends DefaultDecorator { | ||
|
||
private static final String style = " style=\"font-family: Arial;\" "; | ||
|
||
@Override | ||
public void openHeadline(final StringBuilder out, final int level) | ||
{ | ||
out.append("<h"); | ||
out.append(level); | ||
out.append(style); | ||
} | ||
|
||
@Override | ||
public void openParagraph(final StringBuilder out) | ||
{ | ||
|
||
out.append("<p"); | ||
out.append(style); | ||
out.append(">"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters