txt_to_md

Crates.iotxt_to_md
lib.rstxt_to_md
version0.2.0
created_at2023-12-11 20:33:48.135877+00
updated_at2025-08-26 21:16:26.380158+00
descriptionCommand converting from a txt file to a markdown file
homepage
repositoryhttps://github.com/scepter914/txt-to-md-rs
max_upload_size
id1065556
size20,644
Satoshi Tanaka (scepter914)

documentation

README

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
Commit count: 7

cargo fmt