- 授权协议: ISC
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/npm/marky-markdown
- 软件文档: https://github.com/npm/marky-markdown/blob/master/README.md
- 官方下载: https://github.com/npm/marky-markdown/archive/master.zip
软件介绍
marky-markdown 是 npm 的官方 markdown 解析器,基于 NodeJS 编写,旨在用 GitHub-style markdown 进行奇偶校验。它由一个最好的 CommonMark markdown 解析器——markdown-it 构建。
安装
npm install marky-markdown --save
编程中使用
marky-markdown 输出单独函数。为了基本使用,这个函数使用一个由字符串转换而成的参数。
var marky = require("marky-markdown")
marky("# hello, I'm markdown").html()命令行使用
你可以在 shell 中使用 marky-markdown 来解析 markdown 文件,最简单的方法是全局安装它。
npm i -g marky-markdown marky-markdown some.md > some.html
它能做什么
Parses markdown with markdown-it, a fast and commonmark-compliant parser.
Removes broken and malicious user input with sanitize-html
Applies syntax highlighting to GitHub-flavored code blocks using the highlights library from Atom.
Uses cheerio to perform various feats of DOM manipulation.
Converts :emoji:-style shortcuts to unicode emojis.
Converts headings (h1, h2, etc) into anchored hyperlinks.
Converts relative GitHub links to their absolute equivalents.
Converts relative GitHub images sources to their GitHub raw equivalents.
Converts insecure Gravatar URLs to HTTPS.
Converts list items with leading [ ] and [x] into GitHub-style task lists
Wraps embedded YouTube videos so they can be styled.
Parses and sanitizes package.description as markdown.
Applies CSS classes to redundant content that closely matches npm package name and description.
Applies CSS classes to badge images, so we can do something interesting with them one day.
npm 包
var package = {
name: "foo",
description: "foo is a thing",
repository: {
type: "git",
url: "https://github.com/kung/foo"
}
}
marky(
"# hello, I am the foo readme",
{package: package}
).html()
图解服务器端网络架构
[日] 宫田宽士 / 曾薇薇 / 人民邮电出版社 / 2015-4 / 79.00元
本书以图配文,详细说明了服务器端网络架构的基础技术和设计要点。基础设计是服务器端网络架构最重要的一个阶段。本书就立足于基础设计的设计细分项目,详细介绍各细分项目的相关技术和设计要点。全书共分为5章,分别讲述进行物理设计、逻辑设计、安全设计和负载均衡设计、高可用性设计以及管理设计时所必需的技术和设计要点。一起来看看 《图解服务器端网络架构》 这本书的介绍吧!
