Options
All
  • Public
  • Public/Protected
  • All
Menu

markdown文件解析类

Hierarchy

  • Markdown

Index

Constructors

constructor

Properties

Static markdownJsPath

markdownJsPath: string = "base/markdown-it/markdown-it.min.js"

markdown-it.min.js文件的路径

Static markdownPluginsPath

markdownPluginsPath: string[] = ...

markdown-it.min.js文件的路径

Static markdownStylePath

markdownStylePath: string = "base/markdown-it/markdown-style.css"

markdown-light.css文件的路径

Methods

Static loadMarkdown

  • loadMarkdown(callBack: any): void
  • 加载Markdown组件

    Parameters

    • callBack: any

      加载成后的回调

    Returns void

Static parseMarkdown

  • parseMarkdown(content: string, callback: any): void
  • 转换markdown代码

    Parameters

    • content: string

      markdown代码

    • callback: any

      回调函数function(htmlValue)

    Returns void

Static showChangelog

  • showChangelog(obj: any): void

Static showMarkdownFile

  • showMarkdownFile(obj: any, title: string, markdownFileUrl: string, windowConfig?: any): void
  • 弹框显示markdown文件

    Parameters

    • obj: any
    • title: string
    • markdownFileUrl: string
    • Optional windowConfig: any

    Returns void