From 8ca372b37a6cf8e1df16942fdf769911e17d81f7 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Mon, 30 Oct 2017 22:58:41 +0000 Subject: [PATCH] Fixing website --- CliClient/app/build-website.js | 8 +++++++- README.md | 4 ++-- index.html | 12 +++++++++--- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/CliClient/app/build-website.js b/CliClient/app/build-website.js index 85a8d8bf94..a9231f85a8 100644 --- a/CliClient/app/build-website.js +++ b/CliClient/app/build-website.js @@ -10,7 +10,7 @@ const headerHtml = ` - Joplin - a free, open source, note taking and to-do application with synchronisation capabilities + Joplin - a free, open source, te taking and to-do application with synchronisation capabilities @@ -21,6 +21,12 @@ const headerHtml = ` background-color: #F1F1F1; color: #333333; } + table { + margin-bottom: 1em; + } + td { + padding: .5em 1em .5em 0; + } .title-icon { height: 2em; } diff --git a/README.md b/README.md index f91bf79e0f..3989e57905 100644 --- a/README.md +++ b/README.md @@ -136,13 +136,13 @@ An Android client is available and can synchronise with the terminal client via When Ctrl+Clicking a URL, most terminals will open that URL in the default browser. However, one issue, especially with long URLs, is that they can end up like this: - + Not only it makes the text hard to read, but the link, being cut in two, will also not be clickable. As a solution Joplin tries to start a mini-server in the background and, if successful, all the links will be converted to a much shorter URL: - + Since this is still an actual URL, the terminal will still make it clickable. And with shorter URLs, the text is more readable and the links unlikely to be cut. Both resources (files that are attached to notes) and external links are handled in this way. diff --git a/index.html b/index.html index 8b99480718..253d79887f 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@ - Joplin - a free, open source, note taking and to-do application with synchronisation capabilities + Joplin - a free, open source, te taking and to-do application with synchronisation capabilities @@ -13,6 +13,12 @@ background-color: #F1F1F1; color: #333333; } + table { + margin-bottom: 1em; + } + td { + padding: .5em 1em .5em 0; + } .title-icon { height: 2em; } @@ -212,10 +218,10 @@

Get it on Google Play

URLs

When Ctrl+Clicking a URL, most terminals will open that URL in the default browser. However, one issue, especially with long URLs, is that they can end up like this:

-

+

Not only it makes the text hard to read, but the link, being cut in two, will also not be clickable.

As a solution Joplin tries to start a mini-server in the background and, if successful, all the links will be converted to a much shorter URL:

-

+

Since this is still an actual URL, the terminal will still make it clickable. And with shorter URLs, the text is more readable and the links unlikely to be cut. Both resources (files that are attached to notes) and external links are handled in this way.

Attachments / Resources

In Markdown, links to resources are represented as a simple ID to the resource. In order to give access to these resources, they will be, like links, converted to local URLs. Clicking this link will then open a browser, which will handle the file - i.e. display the image, open the PDF file, etc.