You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Original code blockdeforiginal_valueifassigned?original_attribute.original_valueelsetype_cast(value_before_type_cast)endend# After ReverseMarkdowndeforiginal_valueifassigned?original_attribute.original_valueelsetype_cast(value_before_type_cast)endend
The text was updated successfully, but these errors were encountered:
@maestromac Thanks for reporting. Can you provide a complete example of the problem.
The following looks ok for me:
code=<<~EOS <pre> <code> def original_value if assigned? original_attribute.original_value else type_cast(value_before_type_cast) end end </code> </pre>EOSputsReverseMarkdown.convert(code)deforiginal_valueifassigned?original_attribute.original_valueelsetype_cast(value_before_type_cast)endend
It's been a while so I'm having trouble recalling and providing the original item that caused this problem. One thing I do remember is that the code block may not have been wrapped in a pre/code tag.
Thanks for following up. Since we went ahead and monkey patched that method, I'm closing this issue.
The use of
String#squeeze
in the file below is messing with codeblock's indentation.reverse_markdown/lib/reverse_markdown/converters/text.rb
Line 51 in 7da325d
I.E.
The text was updated successfully, but these errors were encountered: