Skip to main content

All Questions

Tagged with
50 votes
3 answers
59k views

correctly sizing PNG images in markdown with pandoc for html/pdf/docx

I am trying to use markdown with pandoc to convert a single document into html, pdf, and docx. It's an extremely simple document containing only math-less text and a few images. The images are in ...
user46976's user avatar
  • 1,548
11 votes
2 answers
5k views

Rendering PDF from Markdown file with literal emoji characters using Pandoc

I'd like to convert markdown text like: This is a smile 😀 To a PDF with the emoji on it. To be clear, I want to be able to insert the emoji character itself in the source text, not something like :...
agentofuser's user avatar
  • 7,447
9 votes
3 answers
6k views

Word count for markdown?

Is there a way to get a word count of natural language words in Markdown (or better, Pandoc Markdown), via the command line? It's possible to just use wc to get a very rough estimate, but wc is naive,...
naught101's user avatar
  • 1,433
8 votes
1 answer
3k views

Make pandoc ignore css style class

I'm trying to convert an HTML file to Markdown using Pandoc, but I'm having a hard time finding the correct options. I would like convert the entire HTML file to the simplest Markdown possible. That ...
Seanny123's user avatar
  • 391
6 votes
2 answers
3k views

Why would RTF files created with Pandoc be opened as plain text?

I'm experimenting with Pandoc, in particular the markdown to RTF function. When I run the converter, the resulting RTF is opened in both Word and OpenOffice as plain text (where the text looks like ...
Ash's user avatar
  • 3,024
6 votes
1 answer
5k views

Compile PDF book from multiple Markdown files

I have a folder structure like this, with recipe .md files in directories according to theme: Recipes |- Mains | |- recipe1.md | |- recipe2.md |- Desserts |- recipe3.md ...
John L. Godlee's user avatar
4 votes
2 answers
1k views

Pandoc: Duplicate footnotes - multiple files - same name

I have a folder structure like the following: chapters/ 01-chapter.md 02-chapter.md 03-chapter.md format.sh parse.sh parse.sh pandoc -t html5+smart -so dist/book.html --html-q-tags chapters/*....
leun4m's user avatar
  • 364
4 votes
1 answer
669 views

How do I set pandoc as a 'compiler' for markdown files in SciTE?

I've begun writing stuff in markdown lately, and edit my files in SciTE. I work in Windows, so this means I'm simultaneously running a Windows command prompt to generate output files at various stages ...
Duncan Johnson's user avatar
4 votes
0 answers
838 views

Creating Text Style with Colors using Pandoc to Docx Converter

I am creating a simple Word document (*.docx) using Pandoc. My input text file is fairly straight forward. I would like to create text with Red/Yellow/Green highlight. I am aware of creating a custom ...
DigitalNomad's user avatar
  • 1,718
4 votes
1 answer
2k views

How do I use Pandoc's extensions correctly?

This is in my .md document: ![Step 1](Slide1.png){ width=100px } ![Step 2](Slide2.png){ width=100px } ![Step 3](Slide3.png){ width=100px } ![Step 4](Slide4.png){ width=100px } ![Step 5](...
JMC's user avatar
  • 158
3 votes
2 answers
5k views

When converting txt to docx using pandoc, how to specify default paragraph style?

I am trying to convert a txt file (markdown) to docx using pandoc with a special MS Word template. I'm doing it this way: pandoc -s --reference-docx=/path/to/my/template.dotx -o outfield.docx file.md ...
Jason's user avatar
  • 315
3 votes
1 answer
1k views

pandoc - markdown to man page tables not formatted (on msys2)

I am trying to use pandoc (if someone has a better conversion program I am all ears, please not ruby-dependent) to convert markdown files into manpages. It works fine until I go to do a doc with a ...
ehiller's user avatar
  • 334
3 votes
1 answer
1k views

Pandoc options to convert LaTeX flavored Markdown to HTML

The aim is to convert a Markdown file (file.md) to a html file (file.html). The Markdown file contains formulas specified in LaTeX specified between two dollar ($) signs. Example: The resulting ...
willeM_ Van Onsem's user avatar
3 votes
1 answer
426 views

How to use Pandoc with double-byte characters?

I am trying to convert a Markdown document to PDF. The following works using pandoc test.md -o test.pdf: # Test Testing But this # Test 日本語 gives me an error: ! Package inputenc Error: Unicode ...
ceiling cat's user avatar
  • 4,557
3 votes
0 answers
1k views

Writing corporate documentation in Markdown and pandoc [closed]

Background I have had a few friends that turned me on to markdown and pandoc for writing documentation. At my current job, we use Microsoft Word for writing unstructured, one-off howto documents for ...
TheSavo's user avatar
  • 442

15 30 50 per page