Skip to content

johschmidt42/tango-process-markdown

Repository files navigation

Tango process markdown

This script is designed to post-process markdown text generated by Tango.

It removes the watermark and other unnecessary content, and downloads images so that they can be used locally.

Table of contents

Minimal example

You can save the markdown text to a file and specify the file path when running the script. For example:

python3 src/tango_process_markdown/process_markdown.py --markdown-file example_unprocessed.md

Or you can copy the markdown text to your clipboard and run the script with the --clipboard flag. For example:

python3 my_script.py --clipboard

Installation

Create and activate a virtual environment and install the required packages with:

poetry install --no-root

OR

pip install .

Getting started

More details at tango.us.

2. Create a Tango account

img_2.png

3. Start recording your step-by-step workflow

img_3.png

4. View the results and start editing

Editing is optional, but allows to zoom in/out, add rectangles, add arrows or add/modify text.

img_4.png img_5.png

Finish editing by clicking Save Workflow.

5. Copy the markdown to your clipboard

  • Click on Share & Export and select Magic Copy.
  • Click on Copy Markdown to copy the content to your clipboard.

img_6.png

6. Run the script

python3 src/tango_process_markdown/process_markdown.py --clipboard --image-dir images --header "How to use Tango like a Pro: 'Example'" --output example_processed.md

7. View the OUTPUT and compare it to the UNPROCESSED RESULT

Unprocessed image

Unprocessed image

Processed image

Processed image

Help

If you have troubles, run:

python3 src/tango_process_markdown/process_markdown.py --help

TODO:

  • Make async calls instead of sync
  • Add unit tests
  • Create GitHub Page
  • Setup CI

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages