Skip to content

Commit

Permalink
docs: update README with image uploader configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Eliot00 committed Mar 18, 2024
1 parent a339db9 commit 2ab8efe
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,14 @@ code {
#+END_SRC

代码块高亮使用了[[https://highlightjs.org/][highlightjs]],可搜索highlightjs主题插入样式文件,具体可参考 ./src/assets/theme.ts 。

*** 图片上传

mp-org支持通过调用外部程序上传本地图片,如:

#+BEGIN_SRC toml
[image]
uploader = "/path/to/uploader"
#+END_SRC

点击「上传本地图片」时,将以 ~uploader <local file path>~ 的形式调用uploader程序,并用 =stdout= 替换原有的本地图片路径。

0 comments on commit 2ab8efe

Please sign in to comment.