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

compiler.rb の 228行目 で #1499

Closed
kmuto opened this issue Apr 18, 2020 · 0 comments
Closed

compiler.rb の 228行目 で #1499

kmuto opened this issue Apr 18, 2020 · 0 comments

Comments

@kmuto
Copy link
Owner

kmuto commented Apr 18, 2020

compiler.rb の 228行目 で

@non_parsed_commands = %i[embed texequation graph]

としていますが、

    def initialize(strategy)
      @strategy = strategy

      ## commands which do not parse block lines in compiler
      @non_parsed_commands = %i[embed texequation graph]

      ## to decide escaping/non-escaping for text
      @command_name_stack = []
    end

で入れているので、不要な気がします。228行目がなければ、overrideする側は

      def initialize(strategy)
      super

      ## commands which do not parse block lines in compiler
      @non_parsed_commands = %i[embed texequation graph texeqnarray]
      end

だけで済むような気がします。

Originally posted by @oipest in #1498 (comment)

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