Skyexu / GFM-Converter

:zap: A program to convert common Markdown into Github Flavored Markdown.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

  • Replace [TOC] tag into generated catalogue.
  • Use CodeCogs to display Mathjax formula.
  • Escape some spacial characters.

Demo

Demo.md

[TOC]

# Title-1

$$ f = \frac{a}{b} $$

# Title-2

$ \vec{a} $ and $ \vec{b} $

# title-3

## title-21

<center> abc </center>

## title-22

<center> ![](pics/1.png) </center>

### title-221

**abc**def

### title-222

### title-223

# title-3

Useage

You can just run App.java, and then specify the path of Markdown document. After that, a new file suffixed with .gfm will be created.

javac -encoding UTF-8 App.java
java App

You can also use below API in your program.

GFMConverter.convert(srcFilePath, detFilePath);

About

:zap: A program to convert common Markdown into Github Flavored Markdown.

License:MIT License


Languages

Language:Java 100.0%