datasette-multiline-links by simonw

11 downloads this week        Star

README source code


PyPI Changelog Tests License

Make multiple newline separated URLs clickable in Datasette


Install this plugin in the same environment as Datasette.

datasette install datasette-multiline-links


Try this plugin out against a Google Sheets spreadsheet of previously featured datasets from Data is Plural using Datasette Lite here:


Once installed, if a cell has contents like this:
Not a link

It will be rendered as:

<a href=""></a>
Not a link
<a href=""></a>


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: