Hot key set to Ctrl + C
and paste in Outlook or wherever
In Files and Links – Use Wiki links and shortest path for convenience across docs.
In Editor – Turn off strict line break (or alternatively do Linter step to add two spaces at end of line to make it hard break)
Enable Linter plugin to put in two spaces to convert soft line break to hard line break. **This is not needed when using Export from HTML or copy as HTML. and strict line breaks is turned off **
Before exporting, use Obsidian link converter to convert all links to wiki links with relative paths. If you would like you can avoid this step by choosing the relative path in Core setup, but since I export less than 1% of the document I like the cleaner look of shortest path.
Use SVG or PNG for embedding
I am using PNG- to enable PowerPoint to live update images (Insert image and link)
[image name|300] can be used to adjust resolution if needed
[BUG] Pandoc cannot find image file unless full relative path is used · Issue #81 · OliverBalfour/obsidian-pandoc (github.com)
feat: set the CWD for pandoc to the input dir by janLo · Pull Request #101 · OliverBalfour/obsidian-pandoc (github.com)
Outlook uses Word HTML rendering so it will not show the same as browser.. but if you export to word file and then copy paste to Outlook or insert as text it is fine.. (refer: Importinghtml into outlook)
Add the attach file (the one without arrow) command into your quick access tool bar
Enable Linter plugin to put in two spaces to convert soft line break to hard line break.
Also will need to ensure headings have a space above them (not required when exporting from HTML)
This is needed only if you are using wiki links which I do since that is convenient and exporting is done only for a smaller subset. This operates on the full file and will convert all links, including non image links into Markdown link. Then they will show up in the exported doc as a link to a document, which I didn't want. Ideally, I would have preferred only images to be converted to Markdown link and rest remain as wiki link, but no such option. It is because of this limiation I am using Method 2 over 2A.
Enable Markdown link instead of wiki link when pasting images (in Obsidian)
Use Ctrl +Shift + L (plugin - wiki to md link ) on each link to convert
When using Markdown link plugin does not provide option to change links to text, so we will need to change the wiki link using the filter mechanism.
To know more about filter see below
pandoc "Export Test.md" --filter="removewikilink.py" -o test.docx
Python script is based on discussion [here](Remove markdown wiki-link brackets during pandoc exports (github.com))
With this code, link is removed, but closing brackets are not fully removed. An enhanced code in link above takes care of that issue, but not tested by me.
#!/usr/bin/env python3
from pandocfilters import toJSONFilter, Str
import re
def replace(key, value, format, meta):
if key == 'Str':
if '[' in value:
new_value = value.replace('[', '')
return Str(new_value)
if ']' in value:
new_value = value.replace(']', '')
return Str(new_value)
if name == 'main':
toJSONFilter(replace)