Upload files to "java/markup"

This commit is contained in:
2026-04-13 10:48:08 +03:00
parent d5c3e10e29
commit 95c17f7dd2
5 changed files with 67 additions and 0 deletions

27
java/markup/Text.java Normal file
View 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);
}
}