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

travs/markdown-pdf: Convert markdown to pdf, png or jpeg on the fly in Atom

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

开源软件名称(OpenSource Name):

travs/markdown-pdf

开源软件地址(OpenSource Url):

https://github.com/travs/markdown-pdf

开源编程语言(OpenSource Language):

JavaScript 46.5%

开源软件介绍(OpenSource Introduction):

Markdown to PDF

Convert markdown-formatted documents to pdf files without ever leaving Atom.

Usage

Just focus the window containing your markdown file and use the convert command (Packages > Markdown PDF > Convert).

The output PDF will be styled similar to the markdown on github.com, as well as any user styles you have added.

It will appear in the same directory as the Markdown you are converting, with the same name and a .pdf extension.

You can set parameters in the package's settings, such as page and border size.

markdown-pdf

Tips

User styles

Note that user styles will have to be encapsulated in a .markdown-body selector to override the default stylesheets, like this:

.markdown-body {
  h1 {
    font-size: 1.3em;
  }
}

Page breaks

Page breaks can be added with this element:

<div style="page-break-after: always;"></div>

Image paths

If you have trouble rendering an image, you may have to use a relative path:

# this doesn't work:
![logo](/assets/logo.png)

# but this does
![logo](./assets/logo.png)

Heart it? Hate it?

Feel free to run apm star 'markdown-pdf' or give some feedback


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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