Ask Different (Apple)
Q&A for power users of Apple hardware and software
Latest Questions
17
votes
7
answers
17192
views
Export from Notes.app to Markdown format?
Using notes is handy as you can have it in multiple devices and makes transition almost effortless. I'm willing to move some of these to Markdown so I can share the content and add formatting to it. Is it possible to be done by default? The only export option is to PDF. If there is some hack that I...
Using notes is handy as you can have it in multiple devices and makes transition almost effortless. I'm willing to move some of these to Markdown so I can share the content and add formatting to it.
Is it possible to be done by default? The only export option is to PDF. If there is some hack that I can apply I'm happy to spend some cycles on that but maybe there is already an option I'm missing.
I've find a few questions pointing to apps to directly do this (https://apple.stackexchange.com/questions/7957/editor-or-notes-application-with-markdown-support) , but I'm trying to find an alternative with the native app.
pablora
(292 rep)
Jan 27, 2019, 06:39 PM
• Last activity: Nov 12, 2024, 12:23 PM
2
votes
1
answers
789
views
pandoc problem with unicode
On MacOS 12.6.9, I try to convert a Markdown file to PDF. For this, I'm using `pandoc 3.1.2`, installed with Homebrew. There are problems converting the characters `∧` and `∨`, which I use for expressing logical formulas. For instance, with this file `utf.md` X ∧ Y ∨ Z which in hex (`xxd utf.md`) wo...
On MacOS 12.6.9, I try to convert a Markdown file to PDF. For this, I'm using
pandoc 3.1.2
, installed with Homebrew. There are problems converting the characters ∧
and ∨
, which I use for expressing logical formulas. For instance, with this file utf.md
X ∧ Y ∨ Z
which in hex (xxd utf.md
) would be
5820 e288 a720 5920 e288 a820 5a0a 0a
and LANG
being set to en_GB.UTF-8
, the command pandoc -s -o utf.pdf utf.md
produces the error message
Error producing PDF.
! LaTeX Error: Unicode character ∧ (U+2227)
not set up for use with LaTeX.
Googling for the problem, I found the suggestion to use _xelatex_ as LaTeX engine. So I tried
pandoc -s --pdf-engine=xelatex -o utf.pdf utf.md
This resulted in
[WARNING] Missing character: There is no ∧ (U+2227) (U+2227) in font [lmroman10-regular]:mapping=t
[WARNING] Missing character: There is no ∨ (U+2228) (U+2228) in font [lmroman10-regular]:mapping=t
and, not surprisingly, the generated pdf file did not include those two characters. I conclude that the font (_lmroman10-regular_) does not include glyphs for these characters.
No my question is: What font would be suitable here, and how do I specify that font for pandoc
?
**UPDATE**
About the font reported by Pandoc (_lmroman10_): I looked at the fonts installed on my Mac (using the the application _Font Book_), and there is no font named _lmroman_, so I'm puzzled where pandoc gets this font from.
user1934428
(1458 rep)
Sep 15, 2023, 10:44 AM
• Last activity: Jun 13, 2024, 12:01 AM
2
votes
2
answers
1615
views
Can't get QLMarkdown to work in Monterey
I'm trying to do what should be a fairly simple task: have Finder and Quick Look view .md and .markdown files as if they had the extension .txt. As per [previous][1] [answers][2] on this topic, I had installed the QLMarkdown plugin in my /Library/Quicklook to make this happen, and it was working fin...
I'm trying to do what should be a fairly simple task: have Finder and Quick Look view .md and .markdown files as if they had the extension .txt. As per previous answers on this topic, I had installed the QLMarkdown plugin in my /Library/Quicklook to make this happen, and it was working fine for a while.
Recently I had a hardware disaster that required Apple to wipe and replace my hard drive, with the new one running Monterey. In this new system, the QLMarkdown plugin is not working. I tried copying the latest version (1.3.6) into the /Library/Quicklook and, as per the readme , I ran qlmanage -r in the terminal to refresh. Then I got an error from Apple saying it would not run because Apple could not check it for malicious software. No option to override.
The previous answers suggest I could install Homebrew and run "brew cask install qlmarkdown", but following the [Homebrew install instructions](https://brew.sh/) wound up causing a system freeze and reboot - and QuickLook wasn't working any better after that.
How do I get QuickLook to recognize Markdown on Monterey under these circumstances?
Displaced Hoser
(201 rep)
Dec 29, 2021, 09:15 PM
• Last activity: Mar 23, 2024, 03:30 PM
2
votes
1
answers
1665
views
Apple Shortcuts app - saving text files with a different extension
When trying to save a text file with a different extension Shortcuts always appends the `.txt` extension to the file name. For example when trying to extract text from notes or clipboard, convert them to Markdown and save the output to a file `some-title.md`, the saved file will be called `some-titl...
When trying to save a text file with a different extension Shortcuts always appends the
How can I enforce the desired extension?
.txt
extension to the file name.
For example when trying to extract text from notes or clipboard, convert them to Markdown and save the output to a file some-title.md
, the saved file will be called some-title.md.txt
.
Shortcut example:

Boris
(133 rep)
Dec 17, 2023, 08:21 AM
• Last activity: Feb 10, 2024, 04:53 AM
4
votes
3
answers
3735
views
How can I convert HTML/Rich Text to Markdown in Automator?
I have an Automator service that takes selected text and saves it in a file. However, bold, italics, and linked URLS aren't preserved. Is there a way I can convert it to Markdown before I save it? When I searched Google, I only found guides to convert plain text to HTML.
I have an Automator service that takes selected text and saves it in a file. However, bold, italics, and linked URLS aren't preserved. Is there a way I can convert it to Markdown before I save it? When I searched Google, I only found guides to convert plain text to HTML.
user76189
Apr 19, 2014, 11:23 PM
• Last activity: Dec 14, 2023, 01:38 PM
2
votes
6
answers
3931
views
Do any text editors for iOS and iPadOS support Markdown + Latex commands with preview?
My requirements are a markdown editor for iOS which supports inline Latex syntax (and preview). Limited Latex support is fine, full support is better, extensible is best. I’m looking for something better than Pages which supports a very small subset of Latex and has limited markdown support. What fr...
My requirements are a markdown editor for iOS which supports inline Latex syntax (and preview).
Limited Latex support is fine, full support is better, extensible is best. I’m looking for something better than Pages which supports a very small subset of Latex and has limited markdown support.
What free or paid options exist?
MadHatter
(331 rep)
Oct 15, 2015, 08:39 PM
• Last activity: Dec 6, 2023, 03:05 AM
0
votes
1
answers
188
views
Free WYSIWYG Markdown editor
I've been using Typora as a Markdown editor when it was free (during beta), but now it's pay for use and I want to find an equivalent, free (preferably open source) tool. **My requirements**: - free (preferably open source) - rather than a separate editing and preview pane, I want the editing to hap...
I've been using Typora as a Markdown editor when it was free (during beta), but now it's pay for use and I want to find an equivalent, free (preferably open source) tool.
**My requirements**:
- free (preferably open source)
- rather than a separate editing and preview pane, I want the editing to happen in the same pane in which the Markdown code is rendered, i.e., WYSIWYG. This is what Typora does
- support for drawing tables, bulleted/numbered lists, code fences, import images, etc. Basically, the same features as the post editor on Stack Exchange, but WYSIWYG instead of separate editing/preview panes
- rendering of math formulas
- runs on Monterey
**Research**: I googled around a bit and I found the following;
- Mou app seemed to have been widely recommended in the past, but it's not being developed anymore (and anyway it cannot be downloaded, since the site is down)
- MacDown is active, but it has separated editing and rendering panes
- similarly for VS Code
DeltaIV
(406 rep)
Nov 24, 2022, 09:35 PM
• Last activity: Mar 19, 2023, 05:43 PM
15
votes
1
answers
5960
views
How can I read markdown files with QuickLook?
I would like to be able to read markdown (.md) files with [Quick Look][1]. Unfortunately, it just appears like this: [![Markdown file macOS Quick Look][2]][2] Is there any way that I can be able to see the contents of this file? I don't care whether it's in rendered or unrendered format, just that I...
I would like to be able to read markdown (.md) files with Quick Look . Unfortunately, it just appears like this:
Is there any way that I can be able to see the contents of this file? I don't care whether it's in rendered or unrendered format, just that I can see it somehow.

Thunderforge
(2143 rep)
Sep 3, 2017, 03:11 AM
• Last activity: Jun 9, 2022, 06:39 AM
1
votes
1
answers
1012
views
Where does Drafts save my markdown files?
Drafts is marketed as a Markdown editor, and supposedly it saves your files in iCloud. However, if you open the "Drafts" folder inside iCloud Drive there is not a Markdown file in sight. [![enter image description here][1]][1] In my opinion, the biggest value of using Markdown is to avoid vendor loc...
Drafts is marketed as a Markdown editor, and supposedly it saves your files in iCloud. However, if you open the "Drafts" folder inside iCloud Drive there is not a Markdown file in sight.
In my opinion, the biggest value of using Markdown is to avoid vendor lock-in, and to never risk being held captive by a single app, especially one with a subscription model. (Not to mention the ability to open the files with different apps that have different strengths, more or less a corollary of the first thing. I should be free to use TextMate or Visual Studio Code or

nvim
if something I want to do with the file is better done there.) Drafts seems like a very useful app, but what in the world is going on with my Markdown files?
iconoclast
(10628 rep)
Dec 14, 2021, 05:32 AM
• Last activity: Dec 17, 2021, 03:30 AM
3
votes
0
answers
410
views
Batch Converting RTF to Markdown?
Anyone have any help, tools, advice, etc. on batch converting RTF to Markdown in MacOS? I've used Automator a little but when I tried the advice in [this thread][1], I couldn't get it to work. I'd love some advice on how I can handle this. I was able to install the [linked services][2] from Brett Te...
Anyone have any help, tools, advice, etc. on batch converting RTF to Markdown in MacOS?
I've used Automator a little but when I tried the advice in this thread , I couldn't get it to work. I'd love some advice on how I can handle this.
I was able to install the linked services from Brett Terpstra, though they don't really show up in Quick Actions or in Automator, but only in the Touch Bar controls for some reason.
When I try to install the RTF to Markdown service from the thread, it doesn't seem to show up in Services or Quick Actions.
When I drag the service into Automator, and try to run it, I just get an error.
I truly don't know what I'm doing wrong or how to get this to work. Any help would be greatly appreciated.
Thanks!




Justen
(31 rep)
Oct 1, 2021, 07:21 PM
• Last activity: Oct 2, 2021, 11:04 PM
4
votes
3
answers
5900
views
How can I create plaintext files with Markdown syntax and convert them to PDF format?
I am very much a novice at this, so please bear with me. I'm intrigued by the idea of using Markdown. I want to be able to write my stuff in a plaintext editor on OS X and iOS and save it in Dropbox in `.txt` format using a Markdown syntax. I don't want to save my files in markdown format but as pla...
I am very much a novice at this, so please bear with me.
I'm intrigued by the idea of using Markdown. I want to be able to write my stuff in a plaintext editor on OS X and iOS and save it in Dropbox in
.txt
format using a Markdown syntax. I don't want to save my files in markdown format but as plain text. I need support for footnotes, so the Multimarkdown syntax seems like an obvious option.
What tools can I use on OS X and iOS to convert my .txt
files, marked up with a Markdown syntax, to .pdf
format? Is this even possible?
Thanks for reading.
Macrod
(798 rep)
Mar 28, 2013, 12:29 PM
• Last activity: Sep 4, 2021, 05:45 AM
1
votes
2
answers
3174
views
macOS Big Sur - Set quick look provider for specific file types?
My default app to open `.md` markdown files is VS Code, which unfortunately doesn't provide quick look support for markdown files: [![enter image description here][1]][1] I've installed other apps that provide quick look for markdown files, how do I make quick look to use them without changing the d...
My default app to open
I've installed other apps that provide quick look for markdown files, how do I make quick look to use them without changing the default app for opening markdown files?
.md
markdown files is VS Code, which unfortunately doesn't provide quick look support for markdown files: 
Teddy C
(1884 rep)
Dec 13, 2020, 01:03 PM
• Last activity: Jul 30, 2021, 05:55 PM
0
votes
2
answers
291
views
Convert bulleted list HTML code to Markdown in AppleScript?
I have this text to manipulate in AppleScript (e.g. the text of a variable): ``` Example note exported from Apple. Indent *Further* indent Even **further **indent. With a [link](https://duck.com). End note. ``` I'm converting it all to Markdown from HTML. I need to clean up this remaining bit of HTM...
I have this text to manipulate in AppleScript (e.g. the text of a variable):
Example note exported from Apple.
- Indent
- *Further* indent
- Even **further **indent. With a [link](https://duck.com) .
End note.
I'm converting it all to Markdown from HTML. I need to clean up this remaining bit of HTML which is the bullet list, so that the result is (with real tabs as indent space):
Example note exported from Apple.
- Indent
- *Further* indent
- Even **further **indent. With a [link](https://duck.com) .
End note.
It has to be able to cater to nested indenting to any 'n' number of levels, and with possibly some rich text inside the items such as this example. I prefer Markdown output to use hyphens and a tab for the indenting.
It also has to be containable inside the applescript - no external .py
files etc, and to not require homebrew
or a third party tool to be installed.
user163629
Oct 23, 2020, 05:40 PM
• Last activity: Oct 25, 2020, 05:37 AM
1
votes
1
answers
476
views
Convert HTML hyperlink code to Markdown (MD) in pure AppleScript?
I have a text file or some text to process via the clipboard. It contains a few lines of HTML code, and I'd like to convert it to pure Markdown. E.g. from: `This is a link: link ` to: `This is a link: [link](https://duck.com)` Is there pure AppleScript code (using regex substitution) that can do thi...
I have a text file or some text to process via the clipboard. It contains a few lines of HTML code, and I'd like to convert it to pure Markdown.
E.g. from:
This is a link: link
to:
This is a link: [link](https://duck.com)
Is there pure AppleScript code (using regex substitution) that can do this?
Alternatively, I am happy with AppleScript calling any CLI tool to process the text via do shell script
if it's an in-built text which doesn't require homebrew
or a third party tool to be installed.
user163629
Oct 23, 2020, 03:53 PM
• Last activity: Oct 24, 2020, 12:45 PM
6
votes
1
answers
893
views
Why does the Kind column show the Chinese characters 文件 for Markdown files?
Finder shows the Chinese characters `文件` next the `md` text in the Kind column for Markdown files: [![enter image description here][2]][2] Same is shown in the inspector: [![enter image description here][1]][1] Through Google Translate I found that the characters `文件` mean `file` in Chinese. Why is...
Finder shows the Chinese characters
Same is shown in the inspector:
Through Google Translate I found that the characters
文件
next the md
text in the Kind column for Markdown files:


文件
mean file
in Chinese.
Why is Finder showing the word file
in md file
in Chinese?
How can I revert it to English?
[Here](http://s000.tinyupload.com/?file_id=19058987172706378188) I've uploaded a sample file that shows this behaviour on my machine.
I'm on macOS 10.15.3, the preferred system language is English (UK). No other files show any Chinese characters.
## What I've tried
Per [suggestion of bjbk](https://apple.stackexchange.com/revisions/384375/2) I've set the Open with
to Visual Studio Code and restarted. This did not change the Kind column contents.
Per [suggestion of WGroleau](https://apple.stackexchange.com/questions/384328/why-does-the-kind-column-show-the-chinese-characters-%e6%96%87%e4%bb%b6-for-markdown-files?noredirect=1#comment523626_384328) I checked if file README.md
returned the same Chinese characters. It does not, it simply returns:
README.md: UTF-8 Unicode text
I've tried using the [mdls
](https://ss64.com/osx/mdls.html) command on the file, it shows that the content type is com.unknown.md
. Maybe that's can help pinpoint the issue?
Full mdls
output below:
_kMDItemDisplayNameWithExtensions = "README.md"
kMDItemContentCreationDate = 2020-01-20 21:18:03 +0000
kMDItemContentCreationDate_Ranking = 2020-01-20 00:00:00 +0000
kMDItemContentModificationDate = 2020-03-14 17:21:13 +0000
kMDItemContentModificationDate_Ranking = 2020-03-14 00:00:00 +0000
kMDItemContentType = "com.unknown.md"
kMDItemContentTypeTree = (
"com.unknown.md",
"public.text",
"public.data",
"public.item",
"public.content",
"public.plain-text"
)
kMDItemDateAdded = 2020-03-14 17:18:56 +0000
kMDItemDateAdded_Ranking = 2020-03-14 00:00:00 +0000
kMDItemDisplayName = "README.md"
kMDItemDocumentIdentifier = 0
kMDItemFSContentChangeDate = 2020-03-14 17:21:13 +0000
kMDItemFSCreationDate = 2020-01-20 21:18:03 +0000
kMDItemFSCreatorCode = ""
kMDItemFSFinderFlags = 0
kMDItemFSHasCustomIcon = (null)
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery = (null)
kMDItemFSLabel = 0
kMDItemFSName = "README.md"
kMDItemFSNodeCount = (null)
kMDItemFSOwnerGroupID = 20
kMDItemFSOwnerUserID = 502
kMDItemFSSize = 97
kMDItemFSTypeCode = ""
kMDItemInterestingDate_Ranking = 2020-03-14 00:00:00 +0000
kMDItemKind = "md"
kMDItemLastUsedDate = 2020-03-14 17:21:05 +0000
kMDItemLastUsedDate_Ranking = 2020-03-14 00:00:00 +0000
kMDItemLogicalSize = 97
kMDItemPhysicalSize = 4096
kMDItemUseCount = 21
kMDItemUsedDates = (
"2020-03-13 23:00:00 +0000"
)
Saaru Lindestøkke
(5990 rep)
Mar 14, 2020, 08:57 AM
• Last activity: Jun 7, 2020, 04:14 PM
2
votes
1
answers
694
views
A way to generate a universal image URL that works between Mac and iOS (DropBox, iCloud, other?)
I'm looking for a way to make all my markdown file universal that is work on iOS, Mac, even Linux/Window/Android. I want to have a single folder where I stick all my images and then point to that folder from whatever OS/device I'm using. For example ``` ~/img/image.png ``` would be readable in the `...
I'm looking for a way to make all my markdown file universal that is work on iOS, Mac, even Linux/Window/Android.
I want to have a single folder where I stick all my images and then point to that folder from whatever OS/device I'm using. For example
~/img/image.png
would be readable in the .md
file from anywhere.
Does anything like that exist? Can I use iCloud or Dropbox for that? Are there any other solutions people may suggest?
zeltak
(249 rep)
Mar 27, 2020, 01:19 PM
• Last activity: Mar 27, 2020, 09:02 PM
4
votes
2
answers
7374
views
Any free and reliable app to display Markdown documents in macOS?
Sometimes we add a file `readme.txt` in our folder for notes or things to know about. Using Markdown, it is pretty easy to make it into a nicely formatted document. Can we write a `README.md` and can use any free and reliable app and use the Mac to read it? (So far I know [Atom has a Markdown-previe...
Sometimes we add a file
readme.txt
in our folder for notes or things to know about.
Using Markdown, it is pretty easy to make it into a nicely formatted document. Can we write a README.md
and can use any free and reliable app and use the Mac to read it?
(So far I know Atom has a Markdown-preview which can be activated by using the keyboard shortcut Control + Shift + M, but if there is a one click preview app, it'd be the best. There is a Quick Look plug-in , but I am wondering if I should alter my OS? If there is a trustworthy app that can do it, it'd be best).
nonopolarity
(9766 rep)
Mar 11, 2020, 09:41 AM
• Last activity: Mar 11, 2020, 10:13 AM
8
votes
1
answers
8372
views
Markdown and Pages
I am looking for the best combination for working on a structured document and sharing it in Markdown format. My favorite editor is Pages, in full screen mode. There I can see how the finished document actually will look like. Unfortunately, there is no direct export to markdown. I've seen another q...
I am looking for the best combination for working on a structured document and sharing it in Markdown format.
My favorite editor is Pages, in full screen mode. There I can see how the finished document actually will look like. Unfortunately, there is no direct export to markdown.
I've seen another question on the topic focusing on Markdown editors (I've tried a few) but I'd like to know if there's a clean way to export from Pages to Markdown. Any ideas?
ZioBrando
(211 rep)
Dec 14, 2012, 05:13 PM
• Last activity: Mar 5, 2020, 05:02 PM
15
votes
1
answers
6164
views
How can I send emails with Mail.app as text/markdown explicitly?
I write all my emails in plain text, not rich text or HTML, but I do use [punctuation markup][LML] as has been popularized by Markdown and others (which were inspired by prior customs in plain-text email). There’s [RFC] 7763 now, which registers the `text/markdown` media type with mandatory `charset...
I write all my emails in plain text, not rich text or HTML, but I do use punctuation markup as has been popularized by Markdown and others (which were inspired by prior customs in plain-text email). There’s [RFC] 7763 now, which registers the
text/markdown
media type with mandatory charset
and optional variant
parameters.
Can I change Apple Mail to always send a respective MIME header?
Content-Type: text/markdown; charset=UTF-8; variant=pandoc; extensions=-raw_html
I hope for some defaults write
magic since there doesn’t seem to be a respective plugin available (yet ). Something like this:
defaults write com.apple.mail UserHeaders \
'{"Content-Type: text/markdown; charset=UTF-8; variant=pandoc; extensions=-raw_html"; }'
Crissov
(894 rep)
Jun 6, 2016, 09:58 PM
• Last activity: Dec 3, 2018, 06:03 PM
3
votes
1
answers
214
views
Ulysses on macOS - share local content between user accounts [without iCloud]
Does anybody know how to share local Ulysses content across Mac user accounts? I can see the local content is not stored at a user-specific directory: `~/Library/Containers/com.soulmen.ulysses3` I have a Admin account and a Standard account. I want to share all of my files between these accounts. Bu...
Does anybody know how to share local Ulysses content across Mac user accounts?
I can see the local content is not stored at a user-specific directory:
~/Library/Containers/com.soulmen.ulysses3
I have a Admin account and a Standard account. I want to share all of my files between these accounts. But when I open my Ulysses on my new Admin account, I cannot see or specify the location of local files.
rustyMagnet
(133 rep)
Jan 2, 2018, 03:07 PM
• Last activity: Jan 2, 2018, 04:23 PM
Showing page 1 of 20 total questions