update
This commit is contained in:
27
java/markup/Text.java
Normal file
27
java/markup/Text.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package markup;
|
||||
|
||||
/**
|
||||
* @author Nikita Doschennikov (me@fymio.us)
|
||||
*/
|
||||
public class Text implements PartOfParagraph {
|
||||
|
||||
private final String text;
|
||||
|
||||
public Text(String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void toHtml(StringBuilder sb) {
|
||||
sb.append(text);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void toMarkdown(StringBuilder sb) {
|
||||
sb.append(text);
|
||||
}
|
||||
|
||||
public void toTex(StringBuilder sb) {
|
||||
sb.append(text);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user