lib/slideshow/config.rb in slideshow-0.9.6 vs lib/slideshow/config.rb in slideshow-0.9.7
- old
+ new
@@ -55,10 +55,14 @@
def markdown_post_processing?( lib )
@hash.fetch( 'user', {} ).fetch( lib, {} ).fetch( 'post-processing', true )
end
+ def known_rest_extnames
+ @hash[ 'builtin' ][ 'rest' ][ 'extnames' ]
+ end
+
def known_textile_extnames
# returns an array of known file extensions e.g.
# [ '.textile', '.t' ]
#
# using nested key
@@ -84,10 +88,10 @@
def known_extnames
# ruby check: is it better self. ?? or more confusing
# possible conflict only with write access (e.g. prop=)
- known_textile_extnames + known_markdown_extnames
+ known_textile_extnames + known_markdown_extnames + known_rest_extnames
end
def text_filters
@hash[ 'builtin' ][ 'filters' ] + @hash[ 'filters' ]
end
\ No newline at end of file