Skip to content

The two colons in code-block can cause unexpected bugs. #136

Description

@t-ueno-ruby

I tried to hide the Ruby code using the fill-in-the-blank function, but the two colons in the pre and code tags caused an unexpected bug.

To summarize, the current state is as follows.

  • The last line of each code block is not displayed from the middle
  • Two code blocks are merged into one

Actual code and display

Actual code

1.pattern1<br>
{{c1::
<pre><code class="language-ruby">
module M
  CONST = "Hello, world"

  class C
    def awesome_method
      CONST
    end
  end
end

p M::C.new.awesome_method  # =&gt; "Hello, world"
</code></pre>
}}<br>

2.pattern2<br>
{{c1::
<pre><code class="language-ruby">
module M
  CONST = "Hello, world"

  class C
    def awesome_method
      CONST
    end
  end
end

p M::C.new.awesome_method  # =&gt; "Hello, world"
</code></pre>
}}

Displayed

09-02_16_01_31

I hope it will look like this.

  • enable two code blocks hide and displayed separately
  • The last line of each code block is displayed

###What I have tried

  • I tried escaping with character code
    • I thought it would work just like <(become &lt;) or >(become &gt;)
      • but when I type &#058; and then remove the focus, it is automatically converted to :

If there is a solution, how should I change it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions