Nothing Special   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
t-ueno-ruby opened this issue Sep 2, 2024 · 0 comments
Open

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

t-ueno-ruby opened this issue Sep 2, 2024 · 0 comments

Comments

@t-ueno-ruby
Copy link
t-ueno-ruby commented Sep 2, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant