Markdown Viewer Lite

view Markdown in Chrome,23 common language surportted

当前为 2017-10-23 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
黄盐
评分
0 0 0
版本
0.5
创建于
2017-10-16
更新于
2017-10-23
大小
29.0 KB
许可证
暂无
适用于

Markdown Viewer Lite(Markdown 阅读器 轻版)

A Lite Version of Markdown Viewer

MarkdownViewer.user.js 开发参考了:扩展Markdown Viewer

To make this script works, you need click [menu]→[More Tools]→[Extensions] to find [Tampermonkey]→"☑Allow access to file URLs" 如果脚本要生效,需要在 [菜单]→[更多工具]→[扩展程序E] 找到 [Tampermonkey]→勾选☑允许访问文件网址

Code Highlight Theme Optionable(可以选择代码高亮风格)

  • coy
  • dark
  • funky
  • okaidia
  • prism
  • solarized
  • twilight

Theme Optionable(可以选择主题)

  • foghorn
  • ghostwriter
  • github_dark
  • github
  • godspeed
  • markdown_alt
  • markdown
  • markdown5
  • markdown6
  • markdown7
  • markdown8
  • markdown9
  • markedapp_byword
  • radar
  • screen
  • solarized_dark
  • solarized_light
  • torpedo
  • vostok

Parse Options (可以选择转换选项)

  • breaks Enable GFM line breaks(requires the gfm option to be true)
    允许 GFM 断行(gfm 选项开启才能生效)
  • gfm
    Enable GFM (GitHub Flavored Markdown)
    开启GFM (GitHub 特有的 Markdown 格式)
  • pedantic Don't fix any of the original markdown bugs or poor behavior 不修正 markdown 源 的错误或错漏
  • sanitize Ignore any HTML that has been input 忽略所有已经输入的 HTML
  • smartLists Use smarter list behavior than the original markdown'
  • smartypants Use "smart" typographic punctuation for things like quotes and dashes
  • tables Enable GFM tables (requires the gfm option to be true) 开启 GFM 表格转换 (gfm 选项开启才能生效)

现状

这个脚本里集成了上面提到的插件的大部分功能.但是也有差异,目前表现为:

  • marked.js 脚本的各种选项
  • Remark 的各种选项,这里不提供
  • emoji 有,引用EmojiOne的
  • scroll 记录滚动条位置,无,因为目前觉得没有太大用处
  • TOC 生成目录,无,打算在后续版本加入
  • MathJax 数学公式转化,有,而且比插件的更加猛,因为这里自豪地采用了KaTex

使用

右上角有个半透明的图标,点击就可以看到各种选项了.

What's New?

what's new,就不知道,what's more就有. 插件中没有的图像转化插件,这里加了4个,后续可能还有更多,

关于

因为本人极度不专业代码,这小小的脚本前后花了不少时间,当然,Bug肯定少不了.但是现在应该说是能够用了.而且,如果不是非常专业的用户的话,也应该够用了.使用后欢迎提意见,如果觉得合适,后续版本加入

功能添加打算

  1. 目录Toc
  2. 折线图,饼状图,柱状图等的解析功能
  3. 高级用户配置界面

More function developing ...(更多功能开发中)

Welcome to my git: ← (¦3[▓▓] 欢迎访问我的Git)

https://github.com/woolition/greasyforks