Crates.io | md2gemtext |
lib.rs | md2gemtext |
version | 0.1.0 |
source | src |
created_at | 2020-10-07 01:19:00.676339 |
updated_at | 2020-10-07 01:19:00.676339 |
description | for converting Markdown into gemtext |
homepage | |
repository | https://git.sr.ht/~boringcactus/md2gemtext |
max_upload_size | |
id | 296783 |
size | 18,761 |
for converting Markdown into gemtext.
cargo install md2gemtext
md2gemtext /path/to/some/file.md /path/to/some/file.gmi
let gemtext = md2gemtext::convert("some markdown")?;
-----
on a line by itself`markdown code spans`
retain their backticks_italics_
are surrounded by single underscores**bold**
is surrounded by double asterisksa [link](a://url) with context
turns into a link with context
followed by => a://url link
an ![inline](a://url) image
turns into an [image: inline] image
followed by => a://url [image: inline]