Project

General

Profile

Actions

Defect #17423

closed

#<issue_num> substitution is broken in text after coderay block

Added by Peter Volkov almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Wiki
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Cant reproduce
Affected version:

Description

If there is coderay text highlighted block in wiki page, #<issue-num> substitutions are broken. Here is a test case to reproduce the issue.

h1. Test

This link works #1!

<pre><code class="ruby">
# The Greeter class
class Greeter
  def initialize(name)
    @name = name.capitalize
  end
   def salute
    puts "Hello #{@name}!" 
  end
end
</pre>

	

While this not #1 :(

This bug is reproducible in 2.2.4 and 2.5.2.


Related issues

Has duplicate Redmine - Defect #17418: regression: attachement:file is not rendered on wiki pageClosed

Actions
Actions #1

Updated by Daniel Felix almost 10 years ago

Well... please try this with valid html.

Your example is broken. You have a pre and then a code tag opened, but you just close the pre.

See here:

Test

This link works #1!

# The Greeter class
class Greeter
  def initialize(name)
    @name = name.capitalize
  end
   def salute
    puts "Hello #{@name}!" 
  end
end

While this not #1 :(

Actions #2

Updated by Daniel Felix almost 10 years ago

  • Status changed from New to Needs feedback
  • Assignee set to Peter Volkov
  • Resolution set to Cant reproduce

Please give some feedback.

Actions #3

Updated by Peter Volkov almost 10 years ago

True, with it works as expected, thank you. Although it'll be valuable if parser somehow reported such problems ;)

Actions #4

Updated by Daniel Felix almost 10 years ago

  • Has duplicate Defect #17418: regression: attachement:file is not rendered on wiki page added
Actions #5

Updated by Daniel Felix almost 10 years ago

  • Status changed from Needs feedback to Closed

Well this is a default problem of browsers. They try to autofix as best as they can ;)

Actions

Also available in: Atom PDF