TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Pandoc 3.0

504 点作者 zczc超过 2 年前

21 条评论

gpoore超过 2 年前
I&#x27;ve been frustrated by Markdown previews not supporting Pandoc features, so I created a Pandoc-based Markdown preview for VS Code [1]. The preview supports all Pandoc extensions to Markdown syntax, because Pandoc itself generates the preview. There is also optional support for code execution with Jupyter kernels. I&#x27;m currently in the process of adding support for non-Markdown formats (including scroll sync), plus taking advantage of some of the new Pandoc 3.0 features.<p>[1]: Examples and animations: <a href="https:&#x2F;&#x2F;codebraid.org&#x2F;presentations&#x2F;scipy2022&#x2F;" rel="nofollow">https:&#x2F;&#x2F;codebraid.org&#x2F;presentations&#x2F;scipy2022&#x2F;</a>. Installation for VS Code: <a href="https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=gpoore.codebraid-preview" rel="nofollow">https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=gpoore.c...</a>. Installation for VSCodium: <a href="https:&#x2F;&#x2F;open-vsx.org&#x2F;extension&#x2F;gpoore&#x2F;codebraid-preview" rel="nofollow">https:&#x2F;&#x2F;open-vsx.org&#x2F;extension&#x2F;gpoore&#x2F;codebraid-preview</a>.
评论 #34444597 未加载
评论 #34447281 未加载
评论 #34440203 未加载
maweki超过 2 年前
Pandoc is a great piece of software. As a university teacher and researcher, I use it in three ways:<p>1. I write markdown for my website and for the websites for my research projects and simply generate standalone html out of it. Done.<p>2. When we create electronic exams, the exam platform takes questions using a html-backed rich text editor. We write down our exam questions using markdown, create html document fragments, that we simply paste into the exam platform.<p>3. When students do electronic exams, we receive xml files from our exam platform. We use python to pass on submissions to different submission checkers (akin to autograders or static analysis) and create yaml files with the student submission and grading suggestions and static analysis annotations. We manually review and grade and comment within the yaml file (that works incredibly well), collect all the data using python and generate markdown reports for each student, including their submission, our comments and scoring. We pass this markdown through pandoc, creating well layouted pdfs which we either print and hand out or send out electronically.<p>Pandoc fits our yaml+markdown-based processes very well. Only for the actual research papers we still write LaTeX and build pdfs without pandoc.
评论 #34444305 未加载
评论 #34438979 未加载
bronikowski超过 2 年前
I love Pandoc. I don&#x27;t often write &quot;documents for office consumption&quot; but when I do, I just write a markdown file and spit out docx or PDF. I was congratulated more than once on how coherent my documents are in their structure.<p>Plus, having a git history is a great boon.
评论 #34440528 未加载
评论 #34440028 未加载
mrehler超过 2 年前
Out of every tool I’ve ever used to make a .docx file from Markdown, Pandoc is the only one that has consistent results with converting Markdown headers to Word styles rather than just a bigger font size. Lots of Markdown tools in my tool belt, and would love to know of any more that can do this, because it’s really useful on the (unfortunate) occasions something needs to live as a Word doc.
评论 #34442202 未加载
kelsolaar超过 2 年前
Quarto, excellent software for building publications, websites, etc…, is leveraging Pandoc: <a href="https:&#x2F;&#x2F;quarto.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;quarto.org&#x2F;</a>
jph超过 2 年前
Pandoc is such a great conversion program, and this new 3.0 release has so many improvements, especially for figures.<p>I write in markdown and export to PDF and using pygments for code syntax coloring, with .tex files to adjust layouts, tables, and the like.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;SixArm&#x2F;pandoc-from-markdown-to-pdf">https:&#x2F;&#x2F;github.com&#x2F;SixArm&#x2F;pandoc-from-markdown-to-pdf</a>
account-5超过 2 年前
Love this program. Means I can write in plain text, markdown or zim-wiki syntax, and export to word no hassles.<p>If I&#x27;m writing markdown I use pandocs version as it has support for advanced tables.<p>Brilliant software.
cosmic_quanta超过 2 年前
That&#x27;s great news. I&#x27;ve been waiting for years for a dedicated &#x27;Figure&#x27; element. The workaround was pretty brittle. It&#x27;ll make pandoc-plot [0] easier to maintain as well.<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;LaurentRDC&#x2F;pandoc-plot">https:&#x2F;&#x2F;github.com&#x2F;LaurentRDC&#x2F;pandoc-plot</a>
zdw超过 2 年前
Does it still automatically generate &quot;smart&quot; quotes (which are anything but) from traditional ones during conversion?<p>Love the tool, but this is the most awful default setting I&#x27;ve seen in a program in a while, especially if you include any code that depends on quotes not being mangled.
评论 #34440567 未加载
评论 #34443793 未加载
评论 #34442717 未加载
CJefferson超过 2 年前
I love pandoc. With it&#x27;s lua filters, I love using it for generating html and blog posts, one thing which always annoys me about most static website generating tools is they make you use some very limited templating language, when I just want to use a proper programming language.<p>My only irritation -- while I understand why one would want to do it for neatness, it&#x27;s annoying that the &quot;pandoc&quot; package no longer provides the &quot;pandoc&quot; program! Maybe instead introducing &quot;pandoc-core&quot; and renaming &quot;pandoc-cli&quot; to &quot;pandoc&quot; would be better (it would certainly avoid breaking existing scripts, like mine).
评论 #34439788 未加载
评论 #34440761 未加载
gyulai超过 2 年前
I&#x27;ve been looking for a tech stack to replace latex for decades now. As a very recent development, the combination of pandoc+weasyprint (plus a little bit of homebrewed pandoc filter magic) has now become good enough for my needs, and I have finally been able to take the plunge. Feels great.<p>For those who are a little less adventurous and who happen to be in the social sciences, humanities, journalism, etc., pandoc+msword is also definitely worth looking into. It&#x27;s a much better tech stack than standalone msword. -- It&#x27;s really only in the STEM fields that, in my mind, there really is no way around latex.
评论 #34442769 未加载
adityaathalye超过 2 年前
Pandoc powers my little static site maker:<p>cf. <a href="https:&#x2F;&#x2F;github.com&#x2F;adityaathalye&#x2F;shite&#x2F;blob&#x2F;master&#x2F;bin&#x2F;templating.sh#L112">https:&#x2F;&#x2F;github.com&#x2F;adityaathalye&#x2F;shite&#x2F;blob&#x2F;master&#x2F;bin&#x2F;templ...</a><p><pre><code> __shite_templating_compile_source_to_html() { # If content has front matter metadata, it is presumed to be in a format # that the content compiler can safely process and elide or ignore. local file_type=${1:?&quot;Fail. We expect file type of content like html, org, md etc.&quot;} case ${file_type} in html ) pandoc -f html -t html ;; md ) pandoc -f markdown -t html ;; org ) pandoc -f org -t html ;; esac }</code></pre>
评论 #34442877 未加载
snet0超过 2 年前
I&#x27;ve been using Pandoc to write Latex-lite for a couple years now. Just write .md files with basic Markdown syntax for all the major text content, and add some Latex when I need to do something more particular. Best of both worlds, really.
quijoteuniv超过 2 年前
Do you want to change yve world? Write software like this. Pandoc is great.
toastal超过 2 年前
One day I wish to see the AsciiDoc(tor) Reader. I&#x27;d love to be freed from Ruby as AsciiDoc is superior to Markdown and most other lightweight markup syntax options in features and syntax. This lack of features is why we have an incompatible group of Markdown syntax forks (aka &quot;flavors&quot; to mask that forks are incompatible).
评论 #34439589 未加载
评论 #34440578 未加载
评论 #34441249 未加载
评论 #34439331 未加载
评论 #34439360 未加载
tetris11超过 2 年前
fantastic software, never build it from source, or if you have to, make sure you have an OS that bundles all the Haskell dependencies into a single meta package
评论 #34439077 未加载
评论 #34443770 未加载
评论 #34439455 未加载
评论 #34438797 未加载
评论 #34441110 未加载
remoquete超过 2 年前
One new feature that will make Python documentarians happy is the `—-list-tables` flag for rST output: You can now convert any table to the list table syntax of reStructuredText, which is, in many&#x27;s opinion, superior to classic tables with ASCII borders.
Brendinooo超过 2 年前
I&#x27;m in a job where I pretty much never need to output a PDF, but whenever the occasional thing comes around, pandoc is always there for me. Such a useful tool.
asicsp超过 2 年前
I use pandoc to convert GitHub style markdown to PDF&#x2F;EPUB ebooks. The default output is good and there are plenty of customization options too. I didn&#x27;t know LaTeX&#x2F;CSS but stitched a few things together with help from stackexchange sites to customize the output produced. Later came to know there are third-party templates that I could&#x27;ve used&#x2F;started with.
jszymborski超过 2 年前
Man I&#x27;d love an asciidoc(tor) reader for pandoc sooo much. The existing toolchain is a big pain.
amai超过 2 年前
Since Pandoc has Lua inbuilt I wonder if it can also run LuaLatex in full? Because then it could support really all features of LaTeX and become a kind of SuperLaTeX.