Skip to content

Converts from bulletpoint markdown format to "normal" text.

Notifications You must be signed in to change notification settings

Alcardian/fulltext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fulltext - Rust

Originally a rewrite of a script I created to convert text for me from "Bulletpoint Format" to "Full Text".
Now able to copy "bulletpoint format" and paste "full text" with styling included directly into Libre Office Writer.

Requirements For Running The Program

Linux

  • Requires: xclip
    • Can be installed with "sudo pacman -S xclip" on arch.

Windows

  • Requires: nothing (can run out of the box)

MacOS

  • Requires: ?
  • Untested. Most likely doesn't work.

Developing

Development Build

To build during development, run:

cargo build

If it doesn't work, try:

cargo update

Verify Unit Tests

Note: "test_convert_to_html_incomplete_formatting" will fail until program can handle incomplete italic and bold correctly. Should show 1 failed.

cargo test

Release Build

Longer build time, but more optimized and smaller executable.

cargo run --release

Manual Test Data

* 1st line.
    * Still 1st line. *italic text*,
    * and some more text.
* Here's the 2nd line. **BOLD**

* Here's the 3rd line.
*
* 4th line is empty, so this is the 5th line.

Expected Result

1st line. Still 1st line. *italic text*, and some more text.
Here's the 2nd line. **BOLD**
Here's the 3rd line.

4th line is empty, so this is the 5th line.

Motivation

  1. To make it easier to make changes, real coding languages are easier for me than trying to do logic in scripts.
  2. To learn Rust.

About

Converts from bulletpoint markdown format to "normal" text.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages