parent
c71caa5cb8
commit
8f9ac33649
2 changed files with 4 additions and 9 deletions
|
|
@ -14,6 +14,7 @@
|
||||||
* Add tags to tumblr posts [#8244](https://github.com/diaspora/diaspora/pull/8244)
|
* Add tags to tumblr posts [#8244](https://github.com/diaspora/diaspora/pull/8244)
|
||||||
* Add blocks to the archive export [#8263](https://github.com/diaspora/diaspora/pull/8263)
|
* Add blocks to the archive export [#8263](https://github.com/diaspora/diaspora/pull/8263)
|
||||||
* Allow points and dashes in the username [#8266](https://github.com/diaspora/diaspora/pull/8266)
|
* Allow points and dashes in the username [#8266](https://github.com/diaspora/diaspora/pull/8266)
|
||||||
|
* Add support for footnotes in markdown [#8277](https://github.com/diaspora/diaspora/pull/8277)
|
||||||
|
|
||||||
# 0.7.15.0
|
# 0.7.15.0
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,9 @@ module Diaspora
|
||||||
end
|
end
|
||||||
|
|
||||||
def strip_markdown
|
def strip_markdown
|
||||||
renderer = Redcarpet::Markdown.new Redcarpet::Render::StripDown, options[:stripdown_options]
|
# Footnotes are not supported in text-only outputs (mail, crossposts etc)
|
||||||
|
stripdown_options = options[:markdown_options].except(:footnotes)
|
||||||
|
renderer = Redcarpet::Markdown.new Redcarpet::Render::StripDown, stripdown_options
|
||||||
@message = renderer.render(message).strip
|
@message = renderer.render(message).strip
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -114,14 +116,6 @@ module Diaspora
|
||||||
squish: false,
|
squish: false,
|
||||||
escape: true,
|
escape: true,
|
||||||
escape_tags: false,
|
escape_tags: false,
|
||||||
stripdown_options: {
|
|
||||||
autolink: true,
|
|
||||||
fenced_code_blocks: true,
|
|
||||||
space_after_headers: true,
|
|
||||||
strikethrough: true,
|
|
||||||
tables: true,
|
|
||||||
no_intra_emphasis: true
|
|
||||||
},
|
|
||||||
markdown_options: {
|
markdown_options: {
|
||||||
autolink: true,
|
autolink: true,
|
||||||
fenced_code_blocks: true,
|
fenced_code_blocks: true,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue