Make multiple newline separated URLs clickable in Datasette
Project description
datasette-multiline-links
Make multiple newline separated URLs clickable in Datasette
Installation
Install this plugin in the same environment as Datasette.
datasette install datasette-multiline-links
Usage
Once installed, if a cell has contents like this:
https://example.com
Not a link
https://google.com
It will be rendered as:
<a href="https://example.com">https://example.com</a>
Not a link
<a href="https://google.com">https://google.com</a>
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-multiline-links
python3 -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for datasette-multiline-links-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33da5e0dff9f4859c58806e9aee4fb9729b56908221a7ae828df8c91ce1f3d8e |
|
MD5 | b51277523ea64e46e08e02cdf43b67a0 |
|
BLAKE2b-256 | e737332644122d2d699cdd82dd69da0f83ca5b3f73156606fba351e616116f39 |
Close
Hashes for datasette_multiline_links-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 198ea5411ab2d43526d976cf88279960f6847333ce1cd5938e391653417072f9 |
|
MD5 | a9ed3b723a1661f3af0da79ea5aa3781 |
|
BLAKE2b-256 | 9081a0f05e1bbe669c45594e37a373e0a7f628f25a8a9899d082f85b6ae66528 |