lib/smithy/formatter.rb in smithycms-0.6.2 vs lib/smithy/formatter.rb in smithycms-0.6.3

- old
+ new

@@ -1,18 +1,18 @@ module Smithy class Formatter < ::Slodown::Formatter def render - fix_asset_links.complete + fix_asset_links.complete.to_s end private def fix_asset_links - @current = @current.gsub(/\/smithy\/assets\/([0-9]+)/) { Smithy::Asset.find($1).url } + @current = Smithy::AssetLink.fix(@current) self end - def kramdown_options + def kramdown_options { coderay_css: 'style' } end def sanitize_config {