mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Correct use of Redcarpet’s safe_links_only flag
This commit is contained in:
parent
a281110b29
commit
685d79e44b
3 changed files with 10 additions and 7 deletions
|
|
@ -9,8 +9,8 @@ describe FormatHelper, type: :helper do
|
|||
expect(markdown(nil)).to eq ''
|
||||
end
|
||||
|
||||
it "doesn't render unsafe URI schemes" do
|
||||
expect(markdown('[a](javascript:b)')).to eq "<p><a>a</a></p>\n"
|
||||
it "doesn't render links with unsafe URI schemes" do
|
||||
expect(markdown('[a](javascript:b)')).to eq "<p>[a](javascript:b)</p>\n"
|
||||
end
|
||||
|
||||
it 'should return HTML for header markdown' do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue