Skip to content

Commit

Permalink
Fix NameError when using Math#display? and Math#inline?
Browse files Browse the repository at this point in the history
  • Loading branch information
UlyssesZh authored Jul 1, 2024
1 parent a110bce commit b464f7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/paru/filter/math.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def initialize(contents)
# @return [Boolean] true if math type is "InlineMath", false
# otherwise
def inline?()
"InlineMath" == @math_type[t]
"InlineMath" == @math_type["t"]
end

# Convert this Math node's content to Inline
Expand All @@ -58,7 +58,7 @@ def inline!()
#
# @return [Boolean] true if type is "DisplayMath"
def display?()
"DisplayMath" == @math_type[t]
"DisplayMath" == @math_type["t"]
end

# Make this Math node's content display as a block
Expand Down

0 comments on commit b464f7d

Please sign in to comment.