Giter Site home page Giter Site logo

markdown-html-convert's Introduction

Markdown-html-convert

convert markerdown to html

目前主要设计想法:

  1. 分三个模块:
  • Main 主控模块,负责CLI的接入,生成对应的Parser和Render来完成工作
  • GFM 模块,提供GitHub Flavored Markdown语言的Parser和Render(暂未安排)
  • HTML 模块,提供HTML语言的Parser(暂未安排)和Render
  1. 类结构:
  • IParser 解析接口
    const AstNode &from(std::istream &in);
    const AstNode parse_from_line(std::stream &in);
    const AstNode document() const;
  • IRender 渲染接口(暂未定义)

  • Ast 数据节点交换类
    包含 AstNode = std::shared_ptr<Ast>
    Asts = std::vector<AstNode>
    两类

  1. 一些辅助函数:
  • ts::make_parser 生成解析实体
  • ts::make_render 生成渲染实体
  • 重载 << >> 符号,实现istream, ostream 流的操作

markdown-html-convert's People

Contributors

betaest avatar maobuju avatar lanjingling34 avatar szqyf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.