import eu.svjatoslav.sixth.core.document.text.FormattedText;
public class TextBlock implements Content {
- private FormattedText text;
+ private final FormattedText text;
+
+ public TextBlock (String contentInOrgMarkup){
+ text = FormattedText.fromOrg(contentInOrgMarkup);
+ }
+
+ @Override
+ public void toMD(StringBuilder sb, int indent) {
+ sb.append(text.toMD(indent) + "\n");
+ }
}