Fix BlahTeX/PNG Path
Dunno why Ari tolerated this up till now.
This commit is contained in:
parent
d3db9d1229
commit
9dc59b7b7c
4 changed files with 16 additions and 4 deletions
|
@ -143,6 +143,12 @@ class WikiContent < String
|
|||
@options[:active_chunks] = (ACTIVE_CHUNKS - [WikiChunk::Word] ) if @web.brackets_only?
|
||||
@options[:hide_chunks] = (HIDE_CHUNKS - [Literal::Math] ) unless
|
||||
[Engines::MarkdownMML, Engines::MarkdownPNG].include?(@options[:engine])
|
||||
if @options[:engine] == Engines::MarkdownPNG
|
||||
@options[:png_url] =
|
||||
@options[:mode] == :export ? 'files/pngs/' :
|
||||
(@url_generator.controller.url_for :controller => 'file', :web => @web.address,
|
||||
:action => 'file', :id => 'pngs', :only_path => true) + '/'
|
||||
end
|
||||
|
||||
@not_rendered = @pre_rendered = nil
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue