测试通过markdown写博客

目录

  • Pandoc Integration

    • What is Pandoc
    • Install Pandoc
      • For Mac User
      • For Windows User
    • Use Pandoc
    • FAQ

TL;DR:

Typora requires Pandoc (≥ v1.20). If you do not have Pandoc or only old version of Pandoc installed on your machine, you could:

Download installer from Download Page and install or update Pandoc.

For windows users, if typora still saying it cannot found Pandoc, you may need try to restart your PC.

Pandoc Integration

In Typora, import function and export function for some file formats (including docx, odt, rtf, epub, LaTeX and wiki) are powered by a 3rd party software named Pandoc. Those features requires Pandoc (≥ v1.16) to be installed.

Please note that install Pandoc is optional for Typora, if you do not need those advanced import/export support in typora, then you do not have to install Pandoc on your computer.

This document would show how to install Pandoc and use Typora with Pandoc for full import/export functions.

What is Pandoc

Pandoc?is a universal document text converter. Typora use it to support file import/export features for several file?types.

Install Pandoc

For Mac User

Briefly speaking, there are two recommended ways.

Install from downloaded package installer

Download a package installer from pandoc‘s?download page, open it and follow the instructions for installation.

Install from homebrew

For developers using homebrew, installing pandoc can be one line from terminal:

brew install pandoc

For Windows User

Download the pandoc-*-window.msi from pandoc‘s?download page, open it and follow the instructions for installation.

Use Pandoc

After Pandoc is installed, then you could import supported file types by clicking File -> Import from menubar, or simple drag and drop a file into typora. Export function is also fully functional from menubar. Pandoc will run in backgrounds for those tasks and then exit automatically, so you may not feel it.

FAQ

Which version of pandoc is supported ?

Versions ≥ 1.16 is required. The latest version, the better. So updating pandoc is encouraged if your pandoc version is too old.

#### Can typora work without pandoc ?

Yes, only import and export (other than html/PDF file types) needs it.

Which file types can be imported or exported by typora ?

Import supports file with extesion: .docx, .latex, .tex, .ltx, .rst, .rest, .org, .wiki, .dokuwiki, .textile, .opml, .epub.

Export supports file formats of: HTML, PDF (these two does not need Pandoc), Docx, odt, rtf, Epub, LaTeX, Media Wiki.

Pandoc should support more file types which typora did not integrate, detailed info is here.

What‘s the difference between exporting by typora and exporting by using pandoc from command line ?

Exporting by typora is also powered by Pandoc, yet typora will not convert directly from markdown to target file type, instead, it converts to an inner format pandoc can read and then write as target file type, so, in detail:

  • If you run pandoc from command line, then you need to specify its markdown parser from (pandoc Markdown,?CommonMark,?PHP Markdown Extra,?GitHub-Flavored Markdown), while exporting using typora, typora will pass its inner AST to pandoc for file conversion. In other words, the format of blocks or inline elements in exported output will always be consistent as what you see in typora and exported HTML/PDF. Yet, the styling maybe different.
  • Some markdown syntax invented by pandoc Markdown, like citations, are not supported when you exporting from typora, since only markdown syntax typora support will be correctly exported. But we may support more extended markdown syntax in future.
  • If you use typora for exporting, then[TOC] will be correctly exported for all file types. Highlight and underline will be supported for LaTeX, rtf, Epub, wiki formats and sometimes Docx. Yet, they are only supported for HTML based file formats in raw Pandoc. Other block and inline elements is basically both supported by raw pandoc and typora+pandoc.

Can all block/inline element types be exported correctly ?

Task list is not supported yet. Underline and highlight for .docx is supported only if they are not used inside or outside other inline styles. Underline and highlight is not support for OpenOffice(.odt). Embedded .gif file is not support for LaTeX. Other block or inline elements can basically be exported. But the styles cannot be 100% match when import/export.

How to uninstall pandoc for mac ?

This is the instruction from pandoc‘s official site:

If you later want to uninstall the package, you can do so by downloading?this script?and running it with?perl uninstall-pandoc.pl".

Found bug and unsupported syntax for exporting ?

Contact us [email protected], better to provide a sample .md file, so we could reproduce the bug.

If you found it is a bug/feature request for pandoc, you could contact the community via pandoc-discuss.

原文地址:https://www.cnblogs.com/chuanzhang053/p/12544179.html

时间: 2024-10-01 03:37:22

测试通过markdown写博客的相关文章

用markdown写博客

目录 用markdown写博客 前言 标题 段落 引用区块 代码块 列表 分隔线 链接 强调.加粗.下划线.删除线 图片 智能链接 表格 转义序列 用markdown写博客 前言 博客园支持用markdown语法写博客.markdown是什么东西?他是一套中间格式化文本的语法,用他写文章在支持这个语法的排版系统里面,会生成对应的排版格式.因为这套中间语言,那么我们就不用学习各种平台独有的排版方式,节省时间.当然,最重要的是markdown本身易于书写,否则就没有使用价值了. 下面我们来学习一下m

使用markdown写博客

使用markdown写博客,首先进入相关页面 写博-> 选项 ->下方勾选markdown即可 点击博客 写博 点击选项 在默认编辑器里勾选markdown选项 点击最下方的save保存即可使用markdown编辑器 使用markdown必须要熟练运用相关的markdown命令 原文地址:https://www.cnblogs.com/lph970417/p/11411466.html

用markdown写博客,看这一篇就够了,附markdown文件分享

0. 前言 为什么用markdown写博客? 在写博客的过程中,最大的"痛点"在于写作中总是被"格式"之类的困扰,无法专注于内容写作: 在线写博客,会被网络或者编辑器本身所拖累: 本文介绍的markdown写作,可以使你专注于博客内容本身,写好即成稿: 更重要的是,博客内容及相关素材保存在本地,可以几乎不用修改就可以发布在不同的平台,类似java程序的"一次编写,到处运行". 记得上次用markdown写博客,尽管我有markdown使用经验,但

用markdown写博客及markdown介绍

什么是markdown? Markdown是一种可以使用普通文本编辑器编写的标记语言,通过简单的标记语法,它可以使普通文本内容具有一定的格式.百度百科markdown 还没听说过markdown?那赶紧去搜搜吧 太多,看的眼花缭乱,那就接着看我这篇吧! 常用markdown工具推荐!! 联网版 常用的主要是如下几款吧,有的我也没用过,大家挑用的顺手的就行,都大同小异 有道云笔记 印象笔记 gitbook 以上几款均有电脑客户端和网页版(或许有手机版),而且可相互同步,也可以团队协作 以上是不是都

让Emeditor支持markdown编辑博客

让Emeditor支持markdown编辑博客 1. 关于高亮显示 2.生成HTML文件并预览 用惯了Emeditor,最近又开始学习用markdown写博客,怎么让Emeditor支持markdown呢? 1. 关于高亮显示 参见:中药铺子——胖大海说胡话 点这里下载EmEditor的MarkDown语法文件. 选择”工具“菜单下的“选择配置”. 在列表的底部,单击“定义配置”. 点击“新建”按钮,选择使用”默认配置”,然后单击“确定”. 输入一个描述性的名称,并单击Enter键. 点击“属性

windows live Write写博客测试

测试下windows live Write离线写博客. 博客地址:http://hy2009.blog.51cto.com/ http://hy2009.blog.51cto.com/xmlrpc.php Metaweblog API 发布地址:http://hy2009.blog.51cto.com/xmlrpc.php

Markdown语法,写博客

都已经大二了,才刚开始学习写博客. 用到的编译器是Typora,为了使用这个编译器,我们要对Markdown语法进行简单了解. Markdown学习 标题 一级标题:#+空格+…… 二级标题:##+空格+…… 三级标题:###+空格+…… 以此类推 字体 粗体:两边加两个星号 斜体:两边加一个星号 既粗又斜:两边加三个星号 废弃:两边加两个波浪号 引用 大于符号 分割线 三个减号或三个星号再回车 图片 ![……](地址链接) 超链接 [……](地址链接) 点击跳转到百度 列表 我 是 谁 A B

测试01,这是在使用Open Live Writer写博客

这是在使用Open Live Writer写博客

用Org-Mode和Jekll写博客

该文章同时发布在我的github blog上:http://cheukyin.github.io/jekyll/emacs/2014-08/org2jekyll.html 1 前言 在这个月之前,我一直都是Vimmer,可是VimScript语法令人无语的混乱和棉花般的软弱无力,让我苦恼不已,可是工作学习却对其颇多依赖,始终舍之不得. 然而,就在上个月,我无意瞥了一眼我那肿胀庞杂臭长不堪的.vimrc,一眼…便失去了维护的信心,放弃Vim,自然只能转投Emacs. 经过一个月的反复折腾和深入研究