Sujet : Re: Weird Stuff (Markdown, syntax highlighting and Python)
De : grant.b.edwards (at) *nospam* gmail.com (Grant Edwards)
Groupes : comp.lang.pythonDate : 27. May 2024, 20:41:15
Autres entêtes
Message-ID : <mailman.46.1716835277.2909.python-list@python.org>
References : 1 2
User-Agent : slrn/1.0.3 (Linux)
On 2024-05-26, Gilmeh Serda via Python-list <
python-list@python.org> wrote:
The web claims (I think on all pages I've read about Markdown and Python)
that this code should work, with some very minor variants on the topic:
>
```python
>
import os
>
with open(os.path.join('/home/user/apath', 'somefile')) as f:
print(f.read())
```
>
However, that is not the case.
For me, that block formats as expected using Python markdown.
What do you mean by "this code should work [...] that is not the case"?
What markdown rendering engine are you using?
-- Grant