Hide Equations From WikiChunk Processing

WikiWord (and the like) could wreak havoc in equations. Protect them
(the way <a>, <pre> and <code> blocks are protected).

For some reason, this doesn't seem to work in inline equations.
Maruku is doing something funny there ... => one failing Unit Test.
This commit is contained in:
Jacques Distler 2009-01-14 16:11:07 -06:00
parent 4936bea13f
commit 074711d4c5
3 changed files with 55 additions and 3 deletions

View file

@ -41,7 +41,7 @@ module ChunkManager
ACTIVE_CHUNKS = [ NoWiki, Category, WikiChunk::Link,
WikiChunk::Word ]
HIDE_CHUNKS = [ Literal::Pre, Literal::Tags ]
HIDE_CHUNKS = [ Literal::Pre, Literal::Tags, Literal::Math ]
MASK_RE = {
ACTIVE_CHUNKS => Chunk::Abstract.mask_re(ACTIVE_CHUNKS),