Skip to main content

markdown_to_comment_blocks

Function markdown_to_comment_blocks 

Source
pub fn markdown_to_comment_blocks(body: &str) -> Vec<CommentBlock>
Expand description

Convert a markdown comment body into ClickUp’s comment rich-text array.

The supported subset:

  • fenced code blocks (```) → each line + a code-block newline;
  • - / * / + bullets → content + a bullet list newline;
  • 1. ordered items → content + an ordered list newline;
  • ATX headings (#..######) → bold content (comments have no heading mark);
  • inline `code` and **bold** within any non-code line;
  • everything else → plain text.