• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

goldsborough/markdownpp: A C++ Markdown solution.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

goldsborough/markdownpp

开源软件地址(OpenSource Url):

https://github.com/goldsborough/markdownpp

开源编程语言(OpenSource Language):

CSS 66.5%

开源软件介绍(OpenSource Introduction):

Markdown++

GitHub license

Markdown++ is a first-of-its-kind Markdown solution for C++. It unifies and handles all aspects of a modern, powerful and flexible Markdown tool including:

  • Markdown conversion with a sweet object-oriented interface.
  • LaTeX integration for all things math.
  • Syntax highlighting with highlight.js and its 65 themes.
  • 8 Markdown themes, such as GitHub's or Solarized.
  • A command-line program accompanying the library.

Usage

#include "markdown-parser.hpp"

int main(int argc, const char* argv[])
{
	// Main interface
	Markdown::Parser parser;

	// Flexible key-value configuration
	parser.configure("markdown-style", "solarized-dark");

	// Quick and easy snippet-conversion, returns HTML as std::string
	// <p><em>hello</em></p>
	auto snippet = parser.snippet("*hello*");

	// 65 possible styles (using highlight.js)
	parser.configure("code-style", "monokai");

	// Full file rendering
	parser.render_file("input.md", "output.html");
}

or

$ markdownpp -m solarized-dark -c monokai input.md output.html

Demo

See this README rendered by markdown++ with the solarized-dark markdown-theme and xcode syntax-theme here.

Documentation

You can build extensive documentation with doxygen. See the doxyfile in the docs/ folder. There are also some example programs in the examples folder.

LICENSE

This project is released under the MIT License. For more information, see the LICENSE file.

Authors

Peter Goldsborough + cat ❤️




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap