Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Zerokei/TextConverter

A tool to convert text from obsidian markdown format into mkdocs markfown format.
https://github.com/Zerokei/TextConverter

Last synced: about 2 months ago
JSON representation

A tool to convert text from obsidian markdown format into mkdocs markfown format.

Awesome Lists containing this project

README

        

# TextConverter :curly_loop:

## Introduction
Obsidian is a markdown-based notes software, while MkDocs is a markdown-based content distribution platform. However, it is well known that markdown has quite a bit of **extended syntax** beyond the base standard. Plus Obsidian and MkDocs both have their own plugins. So, to do content **migration** in both software, sometimes you need to do some content modification.
![](img/p1.png)

## Features
### 1. Obsidian Admonition -> MkDocs Admonition
For the Obsidian admonition, the syntax is
````markdown
```ad-info
xxx
```
````
For the MkDocs admonition, the syntax is
````markdown
!!! info
xxx
````
![](img/admonition.png)

### 2. Erase tags
In obsidian, you may add several tags, but in MkDocs, they are not rendered.

### 3. Resort footnotes
In MkDocs, the footnotes are ordered in the same order as at the end of the markdown file, and for aesthetic purposes should be ordered according to the order in which they appear in the text.

## Usage

```bash
$ git clone [email protected]:Zerokei/TextConverter.git
$ python3 src/main.py target_path # the target path stores the markdown files
```