import markdown2
text = """
```
- (void)openWebsocketWithURL:(NSURL *)url {
// Create a security policy that enforces SSL validation
SRSecurityPolicy *securePolicy = [[SRSecurityPolicy alloc] initWithCertificateChainValidationEnabled:YES];
}
```
"""
print(markdown2.markdown(text))
Produces the following:
<p>```
- (void)openWebsocketWithURL:(NSURL *)url {</p>
<pre><code>// Create a security policy that enforces SSL validation
SRSecurityPolicy *securePolicy = [[SRSecurityPolicy alloc] initWithCertificateChainValidationEnabled:YES];
</code></pre>
<p>}
```</p>
From what I understand it should produce everything inside a code tag and no pre tag like so:
text = "``` a = 90 ```"
print(markdown2.markdown(text))
# Prints out
# <p><code>a = 90</code></p>
Am I incorrect or am I missing something?
Produces the following:
From what I understand it should produce everything inside a
codetag and nopretag like so:Am I incorrect or am I missing something?