Weird Stuff (Markdown, syntax highlighting and Python)
Grant Edwards
grant.b.edwards at gmail.com
Mon May 27 14:41:15 EDT 2024
On 2024-05-26, Gilmeh Serda via Python-list <python-list at 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
More information about the Python-list
mailing list