概述
格式化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 (函数)
转换Article
到Dccument App
v0.2.0 中添加