Simon McVittie
01f2a84360
color: Use markup for the preserved CSS, not character data
...
This still smuggles it past the sanitize step, but avoids having
other plugins that want to capture text content without markup
(notably toc) see the CSS as if it was text content.
2017-05-16 12:08:55 +01:00
Simon McVittie
49de9594b7
color: Add a unit test
2017-05-16 12:08:54 +01:00
smcv
6ab4dee728
we should prefer existing IDs and only act as a fallback
2017-05-16 05:38:02 -04:00
smcv
81221cb030
cross-reference i18nheadinganchors
2017-05-16 05:26:25 -04:00
smcv
ab793c1db0
correct ID syntax
2017-05-16 05:17:57 -04:00
smcv
5150874861
browsers and specifications support more Unicode than we give them credit for
2017-05-16 05:17:00 -04:00
smcv
cad72ecfad
close
2017-05-16 04:27:56 -04:00
Simon McVittie
77df914b3a
Add a simple unit test for [[!toc]]
2017-05-16 08:55:24 +01:00
Simon McVittie
787fb8b058
Prune dead links
2017-05-16 08:55:24 +01:00
Simon McVittie
9858519cc5
Reinstate a git repo that has come back
2017-05-16 08:55:24 +01:00
Antoine Beaupré
b5b48d5bb5
use heading identifiers in TOC links
...
reasoning: if headings have identifiers, they are probably more useful
anchors than the automatically generated anchors we build in the toc
plugin. this can happen if, for example, you use the `multimarkdown`
plugin, which inserts `id` tags for every header it encounters. this
also leverages the `headinganchors` plugin nicely.
keeps backwards-compatibility with old toc-generated #indexXhY
anchors.
2017-05-16 08:55:23 +01:00
smcv
55ae3c7368
Added a comment
2017-05-16 03:29:33 -04:00
Simon McVittie
4fd5f7d910
Clarify documentation
2017-05-16 08:28:04 +01:00
Simon McVittie
1b4571acd5
Add a test-case for Markdown options
2017-05-16 08:25:53 +01:00
Simon McVittie
c72dc5ddb7
mdwn: Don't enable alphabetically labelled ordered lists by default
...
This avoids misinterpreting initials ("C. S. Lewis was an author"),
the abbreviation for Monsieur ("M. Descartes was a philosopher") and
German page numbering ("S. 42") as ordered lists if they happen to
begin a line.
This only affects the default Discount implementation: Text::Markdown
and Text::MultiMarkdown do not have this feature anyway. A new
mdwn_alpha_list option can be used to restore the old interpretation.
2017-05-16 08:09:15 +01:00
qazwsx
94316fca54
Added a comment
2017-05-15 02:19:37 -04:00
Simon McVittie
4db4e589e4
mdwn: Enable footnotes by default when using Discount
...
A new mdwn_footnotes option can be used to disable footnotes in
MultiMarkdown and Discount.
2017-05-14 18:16:53 +01:00
Simon McVittie
81c3258269
mdwn: Don't mangle <style> into <elyts> under some circumstances
...
We can ask libdiscount not to elide <style> blocks, which means we
don't have to work around them.
2017-05-14 17:45:55 +01:00
Simon McVittie
5d65c1ad2c
mdwn: Make flags passed to libdiscount explicit
...
The Perl binding defaults to MKD_NOHEADER|MKD_NOPANTS anyway, but
making them explicit means we can use other flags of our choice,
and makes it easier to justify why those flags are appropriate.
2017-05-14 17:34:12 +01:00
Simon McVittie
60cb2ac458
cgierror: When the CGI fails, print the error to stderr, not "Died"
...
$@ could be clobbered by the "exception handler", and in practice
it seems that it is. This can be seen on stderr of t/git-cgi.t.
2017-05-14 15:39:21 +01:00
Simon McVittie
26ded17653
Defend against empty session names
...
If misconfiguration has resulted in an empty session name, treat the
session as having not signed in.
2017-05-14 15:37:47 +01:00
Simon McVittie
31c89db246
httpauth: If REMOTE_USER is empty, behave as though it was unset
...
A frequently cut-and-pasted HTTP basic authentication configuration
for nginx sets it to the empty string when not authenticated, which
is not useful.
2017-05-14 15:37:45 +01:00
Simon McVittie
59daf36cb2
httpauth: Recommend if_not_empty parameter for REMOTE_USER
...
This is untested, but should hopefully avoid the failure mode
described in [[bugs/Anon_edit_caused_lock_out_on_entire_site_]].
2017-05-14 15:36:26 +01:00
Simon McVittie
8b5c729b8b
t/git-cgi.t: Wait 1 second before doing a revert that should succeed
...
This hopefully fixes a race condition in which the test failed
around 6% of the time.
If we don't wait, the mtime (which is rounded down to 1 second precision
in the APIs we use) will not necessarily change, so the update will not
necessarily cause the page to be refreshed.
Bug-Debian: https://bugs.debian.org/862494
2017-05-14 15:35:52 +01:00
smcv
365a930c2c
complete last paragraph
2017-05-14 08:31:49 -04:00
smcv
f6fc4543fb
I have a theory
2017-05-14 08:20:49 -04:00
smcv
1f2f8d5f77
Added a comment
2017-05-14 08:01:09 -04:00
smcv
75f905a18a
2017-05-14 07:53:24 -04:00
smcv
65fe86e6f3
recommend discount over multimarkdown
2017-05-14 07:51:56 -04:00
smcv
b14e3456dd
multimarkdown: it's a trap!
2017-05-14 07:47:42 -04:00
smcv
50fb6f8b95
Added a comment: Use an underlay instead
2017-05-14 07:37:14 -04:00
smcv
b047fc3757
removed
2017-05-14 07:28:50 -04:00
smcv
f56e365dd0
Added a comment: You can do almost this with an underlay
2017-05-14 07:27:54 -04:00
smcv
02b4fb50c9
Added a comment
2017-05-14 07:00:48 -04:00
smcv
74d99b0063
Added a comment: you can't use and/or/! inside the page() parameter, move them outside
2017-05-14 06:49:54 -04:00
smcv
d49aefdb19
fix syntax
2017-05-14 06:41:21 -04:00
Joe Rayhawk
b919f1c3d4
Piny: mothballing
2017-05-13 09:23:56 -07:00
STrRedWolf
de347f9f6c
2017-05-10 20:52:32 -04:00
qazwsx
69a0f01355
2017-05-09 13:45:51 -04:00
DataComputist
708023250a
Added a comment
2017-05-08 17:16:18 -04:00
DataComputist
587d5dc874
2017-05-08 14:04:22 -04:00
desci
cd651030ea
Updating links
2017-05-01 15:18:15 -04:00
desci
187c5a259c
Updating links
2017-05-01 15:14:33 -04:00
openmedi
d00ddc9aea
Added a comment
2017-04-18 09:13:42 -04:00
openmedi
d16946c950
2017-04-18 08:19:44 -04:00
STrRedWolf
3f709fab6c
Initial commit.
2017-04-16 17:38:24 -04:00
STrRedWolf
42bfe31b8a
2017-04-16 16:53:43 -04:00
STrRedWolf
d090696696
First time theme help needed.
2017-04-16 16:53:21 -04:00
anarcat
defdf8544f
add list of pending patches
2017-04-13 09:27:10 -04:00
anarcat
76001618c2
mark this as a real plugin: forgot the plugin template!
2017-04-13 09:23:21 -04:00