#markdown #txt-file #convert-text #markdown-text

app txt_to_md

Command converting from a txt file to a markdown file

5 releases

0.2.0 Aug 26, 2025
0.1.3 Aug 26, 2025
0.1.2 Aug 1, 2025
0.1.1 Dec 11, 2023
0.1.0 Dec 11, 2023

#218 in Text processing

Download history 119/week @ 2025-07-31 8/week @ 2025-08-07 127/week @ 2025-08-21 82/week @ 2025-08-28 16/week @ 2025-09-04 4/week @ 2025-09-25 8/week @ 2025-10-02

171 downloads per month

MIT license

9KB
170 lines

txt_to_md

This repository txt_to_md is the convert CLI from txt files to markdown file.

Get started

Install

cargo install txt_to_md

Run

  • Run
txt_to_md "
ccc
ddd
eee
fff

ggg
hhh
iii
jjj
"

Run and make file

  • Prepare text.txt
## a
### bb

ccc
ddd
eee
fff

ggg
hhh
iii
jjj

- kkk
  - lll
  - mmm
  • Run
txt_to_md -i text.txt -o output.md
  • See output.md
## a
### bb

- ccc
  - ddd
  - eee
  - fff
- ggg
  - hhh
  - iii
  - jjj
- kkk
  - lll
  - mmm

Option

  • See by below command
txt_to_md -h
  • Output example if is_plane_text option uses

## a
### bb

- ccc

ddd
eee
fff

- ggg

hhh
iii
jjj

- kkk
  - lll
  - mmm

  • Local use
cargo run --release --bin txt_to_md -- -i in.txt

History

  • 0.2.0
    • Fix empty lines and release as newer version
  • 0.1.3
    • Refactoring
  • 0.1.2
    • Add handling with mixed both markdown and raw text
    • Updated README
  • 0.1.1
    • Updated README
  • 0.1.0
    • Release first prototype

Dependencies

~1.4–2.2MB
~42K SLoC