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:
parent
4936bea13f
commit
074711d4c5
3 changed files with 55 additions and 3 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue