Importing markdown files into Apple Pages

My question is: can Apple Pages import a markdown file such that the imported (and structured) markdown text adopts the Pages document's styles? For example, if the markdown file contains "# Heading 1", that element will take on the appearance of the Pages' "Heading 1" Style.


Next question: If this is not possible at present, does Apple have plans to incorporate this functionality into the next version of Pages?

Posted on Aug 26, 2020 4:26 PM

Reply
Question marked as Top-ranking reply

Posted on Aug 27, 2020 7:29 AM

JayHorton54 wrote:
What I want is to have imported text from Word or Markdown take on the appearance of a Pages stylesheet.


If you are thinking that Pages uses a stylesheet, as would HTML5 apply a CSS3 styling to automatically style opened content, then you can forget about that notion. Pages cannot open Markdown, nor even consume plain text, and magically transform it into styled content. On the otherhand, Pandoc can convert your Markdown into HTML5, and allow you to import a stylesheet of your making to produce a web page that can appear like your Markdown.


Pages is a word processing application and when it opens a Word document, it attempts to translate that content, including inherent styles, into the Pages internal document (.pages) format. There is no assurance that the internal Pages document will be 100% faithful to the original Word document appearance, nor do you have any control over any of the available Pages templates during translation.


Based on your original goal, Pages is not the tool you thought it was and you cannot directly, or indirectly (Pandoc) get Pages to automatically style your Markdown content. Wrong tool.

5 replies
Question marked as Top-ranking reply

Aug 27, 2020 7:29 AM in response to JayHorton54

JayHorton54 wrote:
What I want is to have imported text from Word or Markdown take on the appearance of a Pages stylesheet.


If you are thinking that Pages uses a stylesheet, as would HTML5 apply a CSS3 styling to automatically style opened content, then you can forget about that notion. Pages cannot open Markdown, nor even consume plain text, and magically transform it into styled content. On the otherhand, Pandoc can convert your Markdown into HTML5, and allow you to import a stylesheet of your making to produce a web page that can appear like your Markdown.


Pages is a word processing application and when it opens a Word document, it attempts to translate that content, including inherent styles, into the Pages internal document (.pages) format. There is no assurance that the internal Pages document will be 100% faithful to the original Word document appearance, nor do you have any control over any of the available Pages templates during translation.


Based on your original goal, Pages is not the tool you thought it was and you cannot directly, or indirectly (Pandoc) get Pages to automatically style your Markdown content. Wrong tool.

Aug 26, 2020 6:58 PM in response to JayHorton54

Absolutely no markdown support in Pages v10.1.


Download and use the free pandoc to convert markdown to Word .docx in the Terminal. The pkg installer will place the binary in /usr/local/bin, and the pandoc man page in /usr/local/share/man/man1. Once pandoc is installed, run the following in the Terminal application using your markdown file instead of the faux etwas.md.


/usr/local/bin/pandoc -s -f markdown -o etwas.docx etwas.md


Open the Word file in Pages.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Importing markdown files into Apple Pages

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.