plugin:color
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:color [2016-09-03 00:36] – Klap-in | plugin:color [2024-02-08 08:12] (current) – rnck | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
- | author | + | author |
- | email : chris@jalakai.co.uk | + | email : harald.hanche-olsen@ntnu.no |
type : Syntax | type : Syntax | ||
- | lastupdate : 2016-06-25 | + | lastupdate : 2022-10-19 |
- | compatible : 2009-12-25, 2010-11-07, 2011-05-25, 2012-01-25, 2014-05-05, 2014-09-29d, | + | compatible : Adora Belle, Weatherwax, Binky, Ponder Stibbons, Detritus, Elenor Of Tsort, Frusterick Manners, Greebo, Hogfather, Igor, Jack Jackrum, Kaos |
depends | depends | ||
conflicts | conflicts | ||
- | similar | + | similar |
- | tags : typography, highlight | + | tags : typography, highlight, color, text |
- | downloadurl: | + | downloadurl: |
- | sourcerepo : https:// | + | sourcerepo : https:// |
+ | bugtracker : https:// | ||
- | screenshot_img: | + | screenshot_img: |
---- | ---- | ||
- | |||
===== Installation ===== | ===== Installation ===== | ||
Line 33: | Line 33: | ||
<color # | <color # | ||
<color /# | <color /# | ||
+ | <color rgb(80%, | ||
+ | <color hsl(120, | ||
</ | </ | ||
- | and you will see: | + | and you will see something like this: |
- | {{:plugin: | + | {{https:// |
- | This plugin | + | The foreground or background color specification can be any valid CSS color specification. Beware that some older browsers will not recognise all color specs in the latest CSS version. |
+ | |||
+ | If you use a color specification that contains a slash (''/'' | ||
+ | |||
+ | The precise syntax is as follows. Square brackets ('' | ||
+ | < | ||
+ | <color [⟨fg-color⟩][/ | ||
+ | <color [⟨fg-color⟩]: | ||
+ | </ | ||
+ | You //must// use the second form if either color spec includes a slash. | ||
+ | Note that in that case, the colon separater ('':'' | ||
+ | |||
+ | No valid color spec including a colon is known at this time, but if you need to use one in the future, you //must// use the first form. This plugin | ||
+ | |||
+ | The result is ⟨text⟩ shown with foreground color ⟨fg-color⟩ and background color ⟨bg-color⟩. If either color is omitted or empty, | ||
+ | |||
+ | Example – note the mandatory colon here: | ||
+ | |||
+ | < | ||
+ | <color hwb(120 20% 30% / 50%):> | ||
+ | </ | ||
+ | |||
+ | Harmless restriction: | ||
+ | This plugin now allows any color specification not containing single or double quotes or any of the symbols '' | ||
+ | |||
+ | For a reference of usable color specifications, | ||
+ | [[https://developer.mozilla.org/en-US/docs/ | ||
+ | Beware that not all color specifications work on all browsers. | ||
+ | See the bottom of the referenced page for more information, | ||
+ | check [[https:// | ||
+ | |||
+ | * The plugin works by wrapping contents in a %%< | ||
+ | * You cannot use it //inside// headers either, since [[faq: | ||
+ | * The use of two or more separators (slashes in the first syntax, colons in the second) within %%''< | ||
===== Discussion ===== | ===== Discussion ===== | ||
Line 46: | Line 81: | ||
===== Development ===== | ===== Development ===== | ||
- | Christopher Smith seems leaved | + | |
+ | **Christopher Smith** seems to have left the plugin unmaintained. | ||
===== Update History ===== | ===== Update History ===== | ||
- | * 2008-02-06 --- Fixed a security vulnerability in the colour pattern. | + | * 2022-10-19 Allow the use of a colon separator, so that the color specs may contain a slash |
- | * 2014-01-04 hosted in github by leeyc0 | + | * 2022-10-16 Removed the (too stringent) syntax checking |
+ | * 2022-09-15 Removed deprecated and unnecessary (but harmless) code | ||
+ | * 2018-10-12 New maintainer | ||
+ | * 2018-10-10 Added support for rgb[a](…) and hsl[a](…) color specifications | ||
+ | * 2018-08-09 Added code for handling metadata to the render method | ||
* 2016-06-25 Added ODT support based on branch " | * 2016-06-25 Added ODT support based on branch " | ||
- | + | * 2014-01-04 hosted in github by leeyc0 | |
+ | * 2008-02-06 --- Fixed a security vulnerability in the colour pattern. Any users of this plugin should apply this update. | ||
plugin/color.1472855802.txt.gz · Last modified: 2016-09-03 00:36 by Klap-in