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
File details
Details for the file datasette-multiline-links-0.1.tar.gz
.
File metadata
- Download URL: datasette-multiline-links-0.1.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33da5e0dff9f4859c58806e9aee4fb9729b56908221a7ae828df8c91ce1f3d8e |
|
MD5 | b51277523ea64e46e08e02cdf43b67a0 |
|
BLAKE2b-256 | e737332644122d2d699cdd82dd69da0f83ca5b3f73156606fba351e616116f39 |
File details
Details for the file datasette_multiline_links-0.1-py3-none-any.whl
.
File metadata
- Download URL: datasette_multiline_links-0.1-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 198ea5411ab2d43526d976cf88279960f6847333ce1cd5938e391653417072f9 |
|
MD5 | a9ed3b723a1661f3af0da79ea5aa3781 |
|
BLAKE2b-256 | 9081a0f05e1bbe669c45594e37a373e0a7f628f25a8a9899d082f85b6ae66528 |