Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion markdown_it/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def isPunctChar(ch):
}


def isMdAsciiPunct(ch: str):
def isMdAsciiPunct(ch: int):
"""Markdown ASCII punctuation characters.

::
Expand Down
8 changes: 2 additions & 6 deletions markdown_it/rules_core/smartquotes.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,8 @@ def process_inlines(tokens: List[Token], state: StateCore):
nextChar = charCodeAt(tokens[j].content, 0)
break

isLastPunctChar = isMdAsciiPunct(chr(lastChar)) or isPunctChar(
chr(lastChar)
)
isNextPunctChar = isMdAsciiPunct(chr(nextChar)) or isPunctChar(
chr(nextChar)
)
isLastPunctChar = isMdAsciiPunct(lastChar) or isPunctChar(chr(lastChar))
isNextPunctChar = isMdAsciiPunct(nextChar) or isPunctChar(chr(nextChar))

isLastWhiteSpace = isWhiteSpace(lastChar)
isNextWhiteSpace = isWhiteSpace(nextChar)
Expand Down