MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / dequote

Function dequote

markdown/inlinepatterns.py:148–154  ·  view source on GitHub ↗

Remove quotes from around a string.

(string: str)

Source from the content-addressed store, hash-verified

146
147
148def dequote(string: str) -> str:
149 """Remove quotes from around a string."""
150 if ((string.startswith('"') and string.endswith('"')) or
151 (string.startswith("'") and string.endswith("'"))):
152 return string[1:-1]
153 else:
154 return string
155
156
157class EmStrongItem(NamedTuple):

Callers 1

getLinkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected