@Test public void preview() throws Exception { String content = "pixel art is better at [9gaga][1]\n\n[1]: http: assertEquals( "<p>pixel art is better at <a href=\"http: + "<div class=\"reference-appendix-block\"><div class=\"reference-appendix-index\">1</div><div class=\"reference-appendix-wrap\"><a href=\"http: + "</div>", Debate.renderContentPreview(content)); }
public static String renderContentPreview(String rawContent) { return KmarkProcessor.process(rawContent); }
Debate { public static String renderContentPreview(String rawContent) { return KmarkProcessor.process(rawContent); } }
Debate { public static String renderContentPreview(String rawContent) { return KmarkProcessor.process(rawContent); } Debate(FlakeId articleId,
      FlakeId debateId,
      Zone zone,
      FlakeId parentDebateId,
      UUID replyToAccountId,
      int level,
      String content,
      DebateContentType contentType,
      UUID debaterId,
      String debaterName,
      long upVote,
      long downVote,
      Instant createTime,
      Instant lastUpdateTime); }
Debate { public static String renderContentPreview(String rawContent) { return KmarkProcessor.process(rawContent); } Debate(FlakeId articleId,
      FlakeId debateId,
      Zone zone,
      FlakeId parentDebateId,
      UUID replyToAccountId,
      int level,
      String content,
      DebateContentType contentType,
      UUID debaterId,
      String debaterName,
      long upVote,
      long downVote,
      Instant createTime,
      Instant lastUpdateTime); static Debate create(Article article,
      FlakeId debateId,
      @Nullable Debate parent,
      String content,
      Account debater,
      Instant now); static String renderContentPreview(String rawContent); FlakeId getArticleId(); FlakeId getDebateId(); FlakeId getParentDebateId(); boolean hasParent(); int getLevel(); String getContent(); DebateContentType getContentType(); UUID getDebaterId(); String getDebaterName(); long getUpVote(); long getDownVote(); Instant getCreateTime(); Instant getLastUpdateTime(); String getRenderContent(); String getEscapeContent(); UUID getReplyToAccountId(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); long getTotalVote(); boolean isMaxLevel(); boolean isParent(Debate child); boolean canEdit(Authorization auth); Debate withVote(long newUpVote, long newDownVote); V1DebateDto toV1Dto(); Zone getZone(); boolean isEdited(); String getShortUrlPath(); }
Debate { public static String renderContentPreview(String rawContent) { return KmarkProcessor.process(rawContent); } Debate(FlakeId articleId,
      FlakeId debateId,
      Zone zone,
      FlakeId parentDebateId,
      UUID replyToAccountId,
      int level,
      String content,
      DebateContentType contentType,
      UUID debaterId,
      String debaterName,
      long upVote,
      long downVote,
      Instant createTime,
      Instant lastUpdateTime); static Debate create(Article article,
      FlakeId debateId,
      @Nullable Debate parent,
      String content,
      Account debater,
      Instant now); static String renderContentPreview(String rawContent); FlakeId getArticleId(); FlakeId getDebateId(); FlakeId getParentDebateId(); boolean hasParent(); int getLevel(); String getContent(); DebateContentType getContentType(); UUID getDebaterId(); String getDebaterName(); long getUpVote(); long getDownVote(); Instant getCreateTime(); Instant getLastUpdateTime(); String getRenderContent(); String getEscapeContent(); UUID getReplyToAccountId(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); long getTotalVote(); boolean isMaxLevel(); boolean isParent(Debate child); boolean canEdit(Authorization auth); Debate withVote(long newUpVote, long newDownVote); V1DebateDto toV1Dto(); Zone getZone(); boolean isEdited(); String getShortUrlPath(); static final FlakeId NO_PARENT; static final int CONTENT_MIN; static final int CONTENT_MAX; }