概述

格式化Article结构到文本

这是一个工具包,使用户快速的实现Article结构的打印。


目录


Article (接口)

签名

interface Article {
  /**
   *Description for the article
   */
  description?: string[] | string
  /**
   *Section for the article
   */
  section?: ArticleSection[] | ArticleSection
  /**
   *A article title
   */
  title?: string
}

ArticleSection (接口)

签名

interface ArticleSection {
  content?: string[] | string
  title?: string
}

printArticle (函数)

转换ArticleDccument App

v0.2.0 中添加