Homec4science

Fix monospaced-in-monospaced markup

Authored by epriestley <git@epriestley.com> on Mar 14 2012, 19:49.

Description

Fix monospaced-in-monospaced markup

Summary:
Using storeText() returns a token for the entire matched text which is later replaced back with the stored text.

So this means the "##" rule supercedes the "`" rule, in that:

(1) ##`x`## -> <tt>`x`</tt>

...but:

(2) `##x##` -> <tt><tt>x</tt></tt>

This seems OK though? Otherwise we could try to replace matches one by one from left to right I suppose.

Test Plan: See unit test.

Reviewers: vrana

Reviewed By: vrana

CC: aran, epriestley

Differential Revision: https://secure.phabricator.com/D1896

Details

Committed
epriestley <git@epriestley.com>Mar 14 2012, 19:49
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU064170813bac: Fix various minor bugs with ExecFuture
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHU03658b123142: Fix monospaced-in-monospaced markup (authored by epriestley <git@epriestley.com>).Mar 14 2012, 19:49