📌  相关文章
📜  react js 标记导入和使用 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:03.330000             🧑  作者: Mango

代码示例1
import React from "react";
import { marked } from "marked";

class MarkdownExample extends React.Component {
  getMarkdownText() {
    var rawMarkup = marked.parse("This is _Markdown_.");
    return { __html: rawMarkup };
  }
  render() {
    return 
; } }