当前位置: 首页 > news >正文

优酷视频放到网站上怎么做/临沂森拓网络科技有限公司

优酷视频放到网站上怎么做,临沂森拓网络科技有限公司,怎么做网站才能吸引人,中国人去菲律宾做网站赌钱会抓吗https://github.com/wuyisheng/pagedown 最近还在在写kotlin社区,在写网站的东西,社区需要一个基本的博客编辑器,今天动手做了一下。 Markdown编辑器是有一些现成的,具体的有参考 showdown: 28KB. Basically the gold standard;…

https://github.com/wuyisheng/pagedown

最近还在在写kotlin社区,在写网站的东西,社区需要一个基本的博客编辑器,今天动手做了一下。

Markdown编辑器是有一些现成的,具体的有参考

  • showdown: 28KB. Basically the gold standard; it is the basis for pagedown.

  • pagedown: 8KB. This is what powers StackExchange, so you can see for yourself which features it supports. It is pretty comprehensive and extremely robust. In addition to the 8KB converter script, it also offers editor and sanitizer scripts, both of which StackExchange also uses.

  • markdown-it: 104KB. Follows the CommonMark spec; supports syntax extensions. Fast; may actually be as robust as showdown, but very large. Is the basis for http://dillinger.io/.

  • marked: 19KB. Comprehensive; tested against unit test suite; supports custom lexer rules.

  • micromarkdown: 5KB. Supports a lot of features, but is missing some common ones like unordered lists using * and some common ones that aren’t strictly part of the spec like fenced code blocks. Many bugs, throws exceptions on most longer documents. I consider it experimental.

  • nano-markdown: 1.9KB. Feature scope limited to things used by most documents; more robust than micromarkdown but not perfect; uses its own very basic unit test. Reasonably robust but breaks on many edge cases.

  • drawdown: 1.3KB. Full disclosure, I wrote it. Broader feature scope and more robust than nano-markdown while smaller; handles most but not all of the CommonMark spec. Handles a few edge cases incorrectly; not recommended for user edited documents but very useful for presenting information in web apps. No inline HTML.

  • mmd.js: 800 bytes. The result of an effort to make the smallest possible parser that is still functional. Supports a small subset; document needs to be tailored for it.

  • markdown-js: 54KB (not available for download minified; would probably minify to ~20KB). Looks pretty comprehensive and includes tests, but I’m not very familiar with it.
    meltdown: 41KB (not available for download minified; would probably minify to ~15KB). jQuery plugin; Markdown Extra (tables, definition lists, footnotes).

了解了一下, showdown 、pagedown 用的人挺多的,好多博客网站都是用这两个的,pagedown 是StackExchange fork showdown 做的一个精简版,能支持到showdown的很多配置。然后我就拉代码下来看,pagedown只提供了js转化的东西,样式表没有,代码高亮和表格支持也没有。

然后我找了一个提供代码高亮的插件

https://github.com/jmcmanus/pagedown-extra

再调整了一下布局什么的,最终效果就是这样的了
preview

所以我fork pagedown 下来了,所以,几行代码就可以用了

Include

<link rel="stylesheet" type="text/css" href="demo.css" />
<script type="text/javascript" src="../../Markdown.Converter.js"></script>
<script type="text/javascript" src="../../Markdown.Sanitizer.js"></script>
<script type="text/javascript" src="../../Markdown.Editor.js"></script>
<script type="text/javascript" src="../../Markdown.Extra.js"></script>
<script type="text/javascript" src="prettify.js"></script>

Call

(function() {var converter = new Markdown.Converter();converter.hooks.chain("preConversion", function(text) {return text.replace(/\b(a\w*)/gi, "*$1*");});converter.hooks.chain("plainLinkText", function(url) {return "This is a link to " + url.replace(/^https?:\/\//, "");});Markdown.Extra.init(converter, {highlighter: "prettify"});var editor = new Markdown.Editor(converter);editor.hooks.chain("onPreviewRefresh", prettyPrint);editor.run();
})();

https://github.com/wuyisheng/pagedown

http://www.jmfq.cn/news/5269933.html

相关文章:

  • 重庆做网站做得好的公司/公司宣传网页怎么做
  • html5后台网站模板/谷歌 翻墙入口
  • seo网站的锚文本怎么写/快速网站轻松排名哪家好
  • 做效果图赚钱的网站/保定seo网络推广
  • 长春网站建设工作室/现在有哪些培训学校
  • 免费vi模板网站/郑州网站营销推广公司
  • 二级学院网站建设方案/天津百度关键词推广公司
  • 影视app源码/关键词seo排名怎么做的
  • 海曙网站制作/整站外包优化公司
  • dw做的网站有域名么/东莞网络优化服务商
  • 网站排版图片/廊坊seo排名优化
  • 电子商务网站建设运营/建站开发
  • 深圳电器公司招聘信息/海口网站关键词优化
  • 网站运营费用预算/发稿平台
  • 海门网站开发/资源搜索引擎
  • 网站前端与后台必须同时做吗/深圳网络络推广培训
  • 织梦微电影分享网站织梦整站源码/晨阳seo顾问
  • 网站体验调查问卷怎么做/百度认证官网
  • seo整站网站推广优化排名/做百度推广效果怎么样
  • 智能营销型网站制作/百度竞价推广的优势
  • 学校网站建设报价/优化排名
  • 武汉网站排名提升/账户竞价托管费用
  • 青岛企业网站制作哪家好/搜索引擎都有哪些
  • 手机建站平台微点/百度排行榜风云榜
  • 网站做优化应该具备什么/知识营销成功案例介绍
  • 自己的网站打不开/在线识别图片找原图
  • 怎么查看网站disallow/百度指数功能模块
  • 沈阳网站建设 景乔科技/百度快速收录入口
  • 网页3d游戏排行榜/seo算法入门教程
  • 用dw做红米网站/直通车推广