Skip to main content

qkmd

Quick markdown what you need, just via a link.

Getting Started

Have you ever try to stored the link(URL) in .txt to browse it one day later or few months after? But when you open the file again, muttering to yourself 'What do I store for this?'

Have you learn markdown syntax, but get bored to use it to record the link(URL) by press the [] and () ?

The qkmd is for you, you can just give it a link(URL) then the webpage title will be extract, format to a [title](http://example.com) pattern. Also you can customize the title what you like, append timestamp, append code snip ...

Prerequisites

If you live in the resource blocked area or Internet censorship area , please consider setting a proxy first.

  1. Install the porxy software, assure you can use browser to open the webpage

  2. Install polipo

    $ ## Ubuntu / Debian
    $ sudo apt-get update
    $ sudo apt-get install polipo
    
    $ ## redhat / CentOS
    

    Polipo installation instructions

  3. Export the proxy

    export https_proxy=http://127.0.0.1:8123
    export http_proxy=http://127.0.0.1:8123
    

The qkmd default proxy port number is 8123.

Installing

Assure you python version is >= 3.4

$ pip install qkmd

or

$ python3 setup.py install

or

$ python setup.py install

Usage

usage: qkmd.py [-h] [-d] [-v] [-c [comment [comment ...]]] [-l language]
               [-s source-code-file] [-C] [-t [title [title ...]]]
               [-o output-file] [-P]
               [link]

Quickly formatting markdown `link`, convenient your daily life/work.

positional arguments:
  link                  generate the markdown format link

optional arguments:
  -h, --help            show this help message and exit
  -d, --date            append `RFC 2822` date format
  -v, --version         display current version of `qkmd`
  -c [comment [comment ...]], --comment [comment [comment ...]]
                        give the link a simple comment
  -l language, --language language
                        specific the code language
  -s source-code-file, --source source-code-file
                        give the source code snip file
  -C, --color           source code syntax hightline
  -t [title [title ...]], --title [title [title ...]]
                        add title manually
  -o output-file, --save output-file
                        save the markdown to a file
  -P, --print           turn off print the markdown format in screen

Here is a simple way to reduce your time and simplify your operation.
Assure you always want to store the file to $HOME/mark.md and highlight the code

alias mark='function mark(){ qkmd $* -o ~/mark.md -C;}; mark'

Authors

License

  • This project is licensed under the MIT License - see the LICENSE file for details

Metadata

Release files for qkmd 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qkmd 1.0.3
File Size Uploaded
qkmd-1.0.3.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qkmd 1.0.3
File Interpreter ABI Platform
qkmd-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 13.5 kB

Release files / qkmd-1.0.3.tar.gz

Download URL qkmd-1.0.3.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8b42b0a572bdbdbcb54883143a8b8aadae59ef7f45a9dac5e0d7ed906722ae6a
BLAKE2b-256 checksum
How to use checksums
9324915ec9314d74deb82ce533e84d894b7f993f545c55948fff0cde9164fa92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2

Release files / qkmd-1.0.3-py3-none-any.whl

Download URL qkmd-1.0.3-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
684d8bc40af6a904b1ebb66961c8dc61bbbd21fe1b5e2d83049a0422920673c9
BLAKE2b-256 checksum
How to use checksums
077ac89cf96afe0bd8f58f9298702bfc0e05b9235e5ad1ee542e4f3610cb3083
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page