Post-Platform Digital Publishing Toolkit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
articles:digital-publishing [2025/02/21 13:26] ipekarticles:digital-publishing [2025/02/22 08:55] (current) ipek
Line 1: Line 1:
-**[[https://pandoc.org|Pandoc]]** is a tool to convert one file format to another like markdown, html, docx, rtf, txt, epub, LaTeX, PDF and many others.+**[[https://pandoc.org|Pandoc]]** is a tool to convert one file format to another like markdown, html, docx, rtf, txt, epub, LaTeX, PDF and many others. 
  
 [[https://pandoc.org/installing.html|Installing Pandoc]] [[https://pandoc.org/installing.html|Installing Pandoc]]
Line 7: Line 7:
 **Building a blog-like website with pandoc**: **Building a blog-like website with pandoc**:
  
-1) You can create a doc file with your usual text editor programLibre Office for example. You can insert tables to make your menu or buttonsor you can fill the page entirely with tablesSave it as .docx locally in your computer+Using pandoc to create a website might not be the best wayhowever it can be an easy starta very DIY ✂️ way of making a website, which you can always edit later onThis guide will show you how to make a start
  
-2) Converting the .docx file via command line:  +**1)** You can create a doc file with your usual text editor program, Libre Office for example. You can insert tables to make your menu or buttons, or you can fill the page entirely with tables. Save it as .docx locally in your computer.  
-pandoc --extract-media=. -s file_name.docx -t markdown -o file_name.md+ 
 +**2)** Converting the .docx file via command line:  
 +<code> pandoc --extract-media=. -s file_name.docx -t markdown -o file_name.md </code>
  
 extract media enables to extract the images and makes a folder for them. -s is the usual Pandoc template that is being used in the markdown format. extract media enables to extract the images and makes a folder for them. -s is the usual Pandoc template that is being used in the markdown format.
  
-3) Converting the markdown file into html is possible via the command-line and also via the PanWriter. Via the command line: +**3a)** Converting the markdown file into html is possible via the command-line and also via the PanWriter. Via the command line: 
-pandoc file_name.md -f markdown -t html -s -o file_name.html  +<code> pandoc file_name.md -f markdown -t html -s -o file_name.html </code>
  
 Or you can export the markdown file to html via PanWriter. Or you can export the markdown file to html via PanWriter.
Line 27: Line 29:
  
 You can also [[https://smallsharpsoftwaretools.com/tutorials/create-html-from-multiple-markdown-files/|create a html file out of multiple markdown files]]. You can also [[https://smallsharpsoftwaretools.com/tutorials/create-html-from-multiple-markdown-files/|create a html file out of multiple markdown files]].
 +
 +**3b)** Once you have a markdown file, you can convert the markdown file using a custom css file, that you can create yourself. For this, you can use this command: 
 +
 +<code>
 +pandoc file_name.md -f markdown --css style.css -t html -s -o file_name.html
 +</code>
 +
 +Download an example css file to try it out:
  
 <file CSS file style.css> <file CSS file style.css>
articles/digital-publishing.1740144397.txt.gz · Last modified: 2025/02/21 13:26 by ipek