Zerokei / TextConverter

A tool to convert text from obsidian markdown format into mkdocs markfown format.
3 stars 0 forks source link

[FEATURE] WikiLink transform #3

Open Zerokei opened 1 year ago

Zerokei commented 1 year ago

有两种可选方案

  1. 直接取消 wiki 的括号,保留 | 后的内容(如果没有竖线就全部保留)
  2. 参考 https://github.com/orbikm/mkdocs-ezlinks-plugin 插件,mkdocs 添加 wiki 选项
Zerokei commented 1 year ago

WikiLink 存在多种形式

  1. [[xxx]] 引用文章
  2. [[xxx#yyy]] 引用某篇文章的某个标题
  3. [[#yyy]] 直接引用当前文章标题
  4. [[#^134]] 引用任意区块,并对其进行标号