1 Star 13 Fork 1

轻云逐月2 / chromium-markdown

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 2.09 KB
一键复制 编辑 原始数据 按行查看 历史
轻云逐月2 提交于 2016-09-22 18:51 . 代码整理

JMarkdown

在Chromium内核的浏览器上读取并解析Markdown文件
ps:本项目是fork自Google Play上的一个扩展,并在其基础上做了些许增强功能。

特点

  1. 解析Markdown文件
  2. 当本地文件有变化时自动加载
  3. 高亮代码区域
  4. 在内容右侧显示目录
  5. 支持扩展: Tasklist, table, LaTeX
  6. 在内容区域外双击可以在代码模式和预览模式见切换

安装

当前最新版本:0.0.1.snapshot

演示

列表

  • This task is done
  • This task is done too
  • This is still pending

代码

| Left-Aligned  | Center Aligned  | Right Aligned |
| :------------ |:---------------:| -----:|
| **col 3 is**      | some wordy text | $1600 |
| ~~col 2 is~~      | centered        |   $12 |
| zebra stripes | are neat        |    $1 |
function test() {
  console.log("notice the blank line before this function?");
}
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html

表格

Left-Aligned Center Aligned Right Aligned
col 3 is some wordy text $1600
col 2 is centered $12
zebra stripes are neat $1

LaTeX

Inline LaTeX: $$E=mc^2$$

Block LaTeX:

$$ E=mc^2 $$

Escaped LaTeX: $$E=mc^2$$

感谢

感谢以下开源项目

名称 网址 说明
showdown.js https://github.com/showdownjs/showdown A Markdown to HTML converter written in Javascript
Katex https://github.com/Khan/KaTeX Fast math typesetting for the web
highlightjs https://highlightjs.org/ Syntax highlighting for the Web
JavaScript
1
https://gitee.com/jycggyh/chromium-markdown.git
git@gitee.com:jycggyh/chromium-markdown.git
jycggyh
chromium-markdown
chromium-markdown
master

搜索帮助