bin^2

bin^2

discord server
twitter

How I Use Obsidian - Publishing to WeChat Official Account

How I Use Obsidian - Publishing to WeChat Official Account#

When using Obsidian, one platform for publishing the organized content is the WeChat Official Account.
However, there are some small issues when outputting content to WeChat Official Account:
WeChat Official Account does not support Markdown.
Issues with image uploads.
The final solution is in the end [[#Final Solution]], but let's first talk about the process.

First thought was to use mdnice or similar formatting tools#

After trying various beautification tools, none of them were suitable.
The main problem is that although the style issues are resolved, separate uploading is required for images and rendering of flowcharts is not supported.

Export to docx#

In the process, it was discovered that WeChat Official Account supports docx import. So the idea was to export to docx to solve the image upload and icon support issues.

This led to the idea of using pandoc + pandoc-plantuml-file + obsidian pandoc plugin
[[Obsidian Plugin - pandoc]]
[[pandoc]]
[[Introduction to PlantUML]]

Exporting directly from Obsidian always failed, so let's export using the command line first

pandoc obsidian-file.md -o file.docx --filter pandoc-plantuml

It can be exported to docx and imported into WeChat.

However, pandoc is not perfect and does not support Obsidian's ![[]].

Export to PDF, convert PDF to docx#

Considering that pandoc export may not support other Obsidian formats or plugins, it is clear that pandoc is not a perfect solution.
To support all Obsidian features and plugin display effects, the idea of exporting to PDF using Obsidian itself came up.
Then convert the PDF to docx, and it can be imported into WeChat Official Account.

Several PDF to Word conversion attempts were not ideal.
![[Screen Shot 2022-01-14 at 10.54.53.png]]

Finally, Adobe's official online tool was found, and the official conversion effect is acceptable.
https://www.adobe.com/acrobat/online/pdf-to-word.html

Final Solution#

  • Export as PDF in Obsidian
    ![[Screen Shot 2022-01-14 at 11.19.04.png]]
  • Convert PDF to Word docx using Adobe online tool
    https://www.adobe.com/acrobat/online/pdf-to-word.html
    ![[Screen Shot 2022-01-14 at 11.19.26.png]]
  • Choose to import from Word docx in WeChat Official Account
    ![[Screen Shot 2022-01-14 at 11.20.20.png]]

Although there are some minor style issues, the advantage is that all images and icons can be displayed normally without the need for separate uploading.

#

It is still better to export based on what is seen, from rendering export, rather than re-exporting using plugins.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.