Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #267: The UPS is on strike.


comp / comp.lang.python / Re: Weird Stuff (Markdown, syntax ...) (Posting On Python-List Prohibited)

SubjectAuthor
* Weird Stuff (Markdown, syntax highlighting and Python)Gilmeh Serda
+* Re: Weird Stuff (Markdown, syntax ...) (Posting On Python-List Prohibited)Lawrence D'Oliveiro
|`* Re: Weird Stuff (Markdown, syntax ...) (Posting On Python-List Prohibited)Gilmeh Serda
| `- Re: Weird Stuff (Markdown, syntax ...) (Posting On Python-List Prohibited)Lawrence D'Oliveiro
+* Re: Weird Stuff (Markdown, syntax highlighting and Python)Grant Edwards
|`- Re: Weird Stuff (Markdown, syntax highlighting and Python)Gilmeh Serda
+- Re: Weird Stuff (Markdown, syntax highlighting and Python)dn
`* Re: Weird Stuff (Markdown, syntax highlighting and Python)Thomas Passin
 `* SOLVED! Re: Weird Stuff (Markdown, syntax highlighting and Python)Gilmeh Serda
  +- Re: SOLVED! Re: Weird Stuff (Markdown, syntax highlighting and Python)o1bigtenor
  `- Re: SOLVED! Re: Weird Stuff (Markdown, syntax highlighting and Python)dn

1
Subject: Weird Stuff (Markdown, syntax highlighting and Python)
From: Gilmeh Serda
Newsgroups: comp.lang.python
Organization: Easynews - www.easynews.com
Date: Sun, 26 May 2024 06:28 UTC
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!tncsrv06.tnetconsulting.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!npeer.as286.net!npeer-ng0.as286.net!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx04.ams4.POSTED!not-for-mail
From: gilmeh.serda@nothing.here.invalid (Gilmeh Serda)
Subject: Weird Stuff (Markdown, syntax highlighting and Python)
Newsgroups: comp.lang.python
MIME-Version: 1.0
x-no-archive: yes
User-Agent: Pan/0.157 (Mariinka; 7c3c6087)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 48
Message-ID: <DEA4O.100038$m2s1.57313@fx04.ams4>
X-Complaints-To: abuse@easynews.com
Organization: Easynews - www.easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Sun, 26 May 2024 06:28:51 GMT
X-Received-Bytes: 2168
View all headers

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. At least not for me (using Python 3.12.3).
If instead I type it:

#!python

import os

with open(os.path.join('/home/user/apath', 'somefile')) as f:
print(f.read())

As an indented block (four spaces) and a shebang, THEN it works. You even
get line numbers by default.

N.b. if you don't know, you also need to generate a css file using
pygments to make this work.

Not until I started to read the markdown source code and its docs pages,
the coin dropped.

I'm posting this for other Markdown newbies that otherwise probably would
spend hours trying to make it work.

Speaking of Markdown. Does anybody out there have any idea how to turn on
table borders, adjust them (color/width/etc.) and such things? Currently I
have to add HTML to do so, which works, but isn't very nice. I'd hate to
spend an additional day or two, hunting for this info.

References:
https://pypi.org/project/Markdown/
https://python-markdown.github.io/

--
Gilmeh

"Reality is that which, when you stop believing in it, doesn't go away".
-- Philip K. Dick

Subject: Re: Weird Stuff (Markdown, syntax ...) (Posting On Python-List Prohibited)
From: Lawrence D'Oliv
Newsgroups: comp.lang.python
Organization: A noiseless patient Spider
Date: Sun, 26 May 2024 07:42 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.python
Subject: Re: Weird Stuff (Markdown, syntax ...) (Posting On Python-List
Prohibited)
Date: Sun, 26 May 2024 07:42:14 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <v2up4l$3ajrn$7@dont-email.me>
References: <DEA4O.100038$m2s1.57313@fx04.ams4>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 26 May 2024 09:42:14 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="451388443190dda9246e73da8c2a17d4";
logging-data="3493751"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ffSGBOYpcRjFrcdG9SEJL"
User-Agent: Pan/0.158 (Avdiivka; )
Cancel-Lock: sha1:S+HrrqxVSaTefMQ75KCYtUIWfCk=
View all headers

On Sun, 26 May 2024 06:28:51 GMT, Gilmeh Serda 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())
> ```

I just tried it in a Jupyter notebook. Changed the cell type to Markdown,
pasted the above as its contents, hit shift-enter, and it looked just like
syntax-coloured Python code.

Subject: Re: Weird Stuff (Markdown, syntax ...) (Posting On Python-List Prohibited)
From: Gilmeh Serda
Newsgroups: comp.lang.python
Organization: Easynews - www.easynews.com
Date: Sun, 26 May 2024 08:59 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!193.141.40.65.MISMATCH!npeer.as286.net!npeer-ng0.as286.net!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx04.ams4.POSTED!not-for-mail
From: gilmeh.serda@nothing.here.invalid (Gilmeh Serda)
Subject: Re: Weird Stuff (Markdown, syntax ...) (Posting On Python-List
Prohibited)
Newsgroups: comp.lang.python
References: <DEA4O.100038$m2s1.57313@fx04.ams4>
<v2up4l$3ajrn$7@dont-email.me>
MIME-Version: 1.0
x-no-archive: yes
User-Agent: Pan/0.157 (Mariinka; 7c3c6087)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 24
Message-ID: <4SC4O.100042$m2s1.63284@fx04.ams4>
X-Complaints-To: abuse@easynews.com
Organization: Easynews - www.easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Sun, 26 May 2024 08:59:44 GMT
X-Received-Bytes: 1674
View all headers

On Sun, 26 May 2024 07:42:14 -0000 (UTC), Lawrence D'Oliveiro wrote:

> I just tried it in a Jupyter notebook. Changed the cell type to
> Markdown, pasted the above as its contents, hit shift-enter, and it
> looked just like syntax-coloured Python code.

I've been trying some more and apparently you also have to indent the
backticks and all of the code, which unfortunately makes the backticks
visible, which, well, is ugly. Perhaps there is a setting for it
somewhere, not sure.

It smells as if JN has code that corrects the behavior, whereas plain
Python hasn't.

I think I prefer the other method without the backticks. It's cleaner and
more to the point of what it does.

Cheers,
--
Gilmeh

Rule #1: The Boss is always right. Rule #2: If the Boss is wrong, see Rule
#1.

Subject: Re: Weird Stuff (Markdown, syntax ...) (Posting On Python-List Prohibited)
From: Lawrence D'Oliv
Newsgroups: comp.lang.python
Organization: A noiseless patient Spider
Date: Sun, 26 May 2024 21:01 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.python
Subject: Re: Weird Stuff (Markdown, syntax ...) (Posting On Python-List
Prohibited)
Date: Sun, 26 May 2024 21:01:12 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <v307un$3j7vu$3@dont-email.me>
References: <DEA4O.100038$m2s1.57313@fx04.ams4>
<v2up4l$3ajrn$7@dont-email.me> <4SC4O.100042$m2s1.63284@fx04.ams4>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 26 May 2024 23:01:12 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="dd5858271f518e55c405b4aadfef956a";
logging-data="3776510"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Kf/7r+lgEKyJ3s5RzctOk"
User-Agent: Pan/0.158 (Avdiivka; )
Cancel-Lock: sha1:Qjz4P1QB/5TSaRFWNkWKxLXuTj8=
View all headers

On Sun, 26 May 2024 08:59:44 GMT, Gilmeh Serda wrote:

> On Sun, 26 May 2024 07:42:14 -0000 (UTC), Lawrence D'Oliveiro wrote:
>
>> I just tried it in a Jupyter notebook. Changed the cell type to
>> Markdown, pasted the above as its contents, hit shift-enter, and it
>> looked just like syntax-coloured Python code.
>
> I've been trying some more and apparently you also have to indent the
> backticks and all of the code, which unfortunately makes the backticks
> visible ...

I didn’t need to do that.

Subject: Re: Weird Stuff (Markdown, syntax highlighting and Python)
From: Grant Edwards
Newsgroups: comp.lang.python
Date: Mon, 27 May 2024 18:41 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: grant.b.edwards@gmail.com (Grant Edwards)
Newsgroups: comp.lang.python
Subject: Re: Weird Stuff (Markdown, syntax highlighting and Python)
Date: Mon, 27 May 2024 14:41:15 -0400 (EDT)
Lines: 24
Message-ID: <mailman.46.1716835277.2909.python-list@python.org>
References: <DEA4O.100038$m2s1.57313@fx04.ams4>
<4Vp4Gz3DDyznVGK@mail.python.org>
X-Trace: news.uni-berlin.de 8MH37Yqp2xP09/mLeateJA3ffhM76qrFOQOiiDEg4Snw==
Cancel-Lock: sha1:kNIBYtibm/syEOA/Yy8N0XT014A= sha256:PMNf5HtHJVMHcJxJ/Kel7Jg0vRYs2CfM1Fiv9676HWw=
Return-Path: <grant.b.edwards@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.019
X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'python)': 0.09;
'rendering': 0.09; 'subject:Python': 0.12; 'import': 0.15;
'from:addr:grant.b.edwards': 0.16; 'from:name:grant edwards':
0.16; 'markdown.': 0.16; 'subject:syntax': 0.16; 'topic:': 0.16;
'using?': 0.16; 'wrote:': 0.16; 'python': 0.16; 'grant': 0.17;
'to:addr:python-list': 0.20; "i've": 0.22; 'code': 0.23; 'header
:User-Agent:1': 0.30; 'think': 0.32; '"this': 0.32; 'formats':
0.32; 'python-list': 0.32; 'mean': 0.34; 'from:addr:gmail.com':
0.35; 'work,': 0.36; 'using': 0.37; 'read': 0.38; 'block': 0.39;
'case.': 0.40; 'should': 0.40; 'claims': 0.64; 'message-
id:invalid': 0.68; 'markdown': 0.84; 'minor': 0.84;
'subject:Weird': 0.84
User-Agent: slrn/1.0.3 (Linux)
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <4Vp4Gz3DDyznVGK@mail.python.org>
X-Mailman-Original-References: <DEA4O.100038$m2s1.57313@fx04.ams4>
View all headers

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

Subject: Re: Weird Stuff (Markdown, syntax highlighting and Python)
From: dn
Newsgroups: comp.lang.python
Organization: DWM
Date: Mon, 27 May 2024 20:58 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: PythonList@DancesWithMice.info (dn)
Newsgroups: comp.lang.python
Subject: Re: Weird Stuff (Markdown, syntax highlighting and Python)
Date: Tue, 28 May 2024 08:58:17 +1200
Organization: DWM
Lines: 122
Message-ID: <mailman.47.1716843512.2909.python-list@python.org>
References: <DEA4O.100038$m2s1.57313@fx04.ams4>
<12dcdc9e-095b-4e8e-ae03-ed45ed64856d@DancesWithMice.info>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de FgqKSySVWaM6iuv5fRBT6g7Wx7EMTJ398JjqHKfJqhHw==
Cancel-Lock: sha1:Ppq7eEe9Neq4EPQYPfH4JCrM2zc= sha256:7h0TM4uxHXURqsdv+XKVeOE+UAijcIKwC3pwmMP2qnE=
Return-Path: <PythonList@DancesWithMice.info>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=danceswithmice.info header.i=@danceswithmice.info
header.b=GIoHZCM+; dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.032
X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; '(which': 0.04; '3.6':
0.05; 'pypi': 0.05; '=dn': 0.09; 'from:addr:danceswithmice.info':
0.09; 'from:addr:pythonlist': 0.09; 'pages,': 0.09; 'python)':
0.09; 'received:192.168.1.64': 0.09; 'url-ip:151.101.0.223/32':
0.09; 'url-ip:151.101.128.223/32': 0.09; 'url-
ip:151.101.192.223/32': 0.09; 'url-ip:151.101.64.223/32': 0.09;
'url:search': 0.09; 'subject:Python': 0.12; 'url:github': 0.14;
'import': 0.15; 'problem.': 0.15; 'syntax': 0.15; '"standard':
0.16; 'css': 0.16; 'default.': 0.16; 'heavily': 0.16; 'markdown.':
0.16; 'message-id:@DancesWithMice.info': 0.16; 'objective': 0.16;
'question,': 0.16; 'received:cloud': 0.16; 'received:rangi.cloud':
0.16; 'subject:syntax': 0.16; 'topic:': 0.16; 'unclear,': 0.16;
'url:project': 0.16; 'url:pypi': 0.16; 'variant': 0.16; 'wrote:':
0.16; 'problem': 0.16; 'python': 0.16; 'instead': 0.17;
'probably': 0.17; 'to:addr:python-list': 0.20; 'language': 0.21;
"i've": 0.22; 'code': 0.23; 'url:wiki': 0.23; "i'd": 0.24; 'idea':
0.24; 'fellow': 0.25; 'tried': 0.26; 'again,': 0.26; "isn't":
0.27; 'example,': 0.28; 'header:User-Agent:1': 0.30; 'code,':
0.31; 'header:Organization:1': 0.31; 'think': 0.32; 'anybody':
0.32; 'here,': 0.32; 'python-list': 0.32; 'received:192.168.1':
0.32; 'but': 0.32; "i'm": 0.33; 'there': 0.33; 'particular': 0.33;
'same': 0.34; 'package': 0.34; 'work.': 0.34; 'header:In-Reply-
To:1': 0.34; 'trying': 0.35; 'work,': 0.36; 'people': 0.36;
'source': 0.36; 'necessarily': 0.37; "skip:' 10": 0.37;
'currently': 0.37; 'using': 0.37; "it's": 0.37; 'others': 0.37;
'received:192.168': 0.37; 'file': 0.38; 'read': 0.38; 'least':
0.39; 'single': 0.39; 'otherwise': 0.39; 'use': 0.39; 'block':
0.39; 'finding': 0.39; 'neither': 0.39; 'table': 0.39; 'appears':
0.40; 'case.': 0.40; 'serious': 0.40; 'learn': 0.40; 'should':
0.40; 'reference': 0.60; 'likely': 0.61; 'ten': 0.61; 'skip:h 10':
0.61; 'seen': 0.62; 'today,': 0.62; 'url-ip:151.101.0/24': 0.62;
'url-ip:151.101.128/24': 0.62; 'url-ip:151.101.192/24': 0.62;
'url-ip:151.101.64/24': 0.62; 'hours': 0.63; 'great': 0.63;
'updates': 0.64; 'claims': 0.64; 'speaking': 0.64; 'spend': 0.64;
'your': 0.64; 'upon': 0.64; 'came': 0.65; 'documents': 0.65;
'tool': 0.65; 'years': 0.65; 'day': 0.66; 'numbers': 0.67;
'url:q': 0.67; 'worked': 0.67; 'accept': 0.67; 'further': 0.69;
'it:': 0.69; 'latter': 0.69; 'processing,': 0.69; 'within': 0.69;
'experience.': 0.70; 'url-ip:208.80.154/24': 0.70; 'url-
ip:208.80/16': 0.70; 'url:wikipedia': 0.70; 'url-ip:208/8': 0.71;
'offer': 0.71; 'combination': 0.76; 'reply': 0.77; 'html': 0.80;
'led': 0.81; 'coin': 0.84; 'extracted': 0.84; 'line-up': 0.84;
'markdown': 0.84; 'minor': 0.84; 'realise': 0.84; 'subject:Weird':
0.84; 'dependent': 0.93
DKIM-Filter: OpenDKIM Filter v2.11.0 vps.rangi.cloud 9F904738
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=danceswithmice.info;
s=staff; t=1716843504;
bh=rwXUkoJhQqr2ZEdRBJMC/QlP+WlHwFQarcOT4jy2YNM=;
h=Date:From:Subject:To:References:In-Reply-To:From;
b=GIoHZCM++wgRGmV+QWf05vfjyFQrF4vAl7aKCA8JVwnbUIWHnwR82WcYuLE7ayPNN
17YIYKhus9wNNaAZlVvnAXKwTlH5MRSUL6rGFsz6aELCpgsuPJRe0gkl2xSKGl46vA
eJSYNXYjreDLY0bjENkGoR+C8K36/uEPGslvojaXkN5MY2d1oUC2VSu11lfY34LBQl
KRP+6QB+e8toQPDkgrJlG2jkp0VWq132DllIC9o+/xqEwEeXdjodfzoI1t5i4uOJVC
Im/OLfZYSHdpzJ/u9ttpqGWjkzo7nBc+aiLAKzrD5ZSw0NgFWGoJvDzSHBMC2OyBe+
DC8KdbGnsRxyg==
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <DEA4O.100038$m2s1.57313@fx04.ams4>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <12dcdc9e-095b-4e8e-ae03-ed45ed64856d@DancesWithMice.info>
X-Mailman-Original-References: <DEA4O.100038$m2s1.57313@fx04.ams4>
View all headers

With reference to another reply here, the "Weird stuff" came from
reading the question, finding it unclear, and only later realising that
whereas most people write Markdown-formatted documents for later
processing, or perhaps docstrings in Markdown-format for collection by
documentation systems; here, the objective appears to be using Python to
generate Markdown.

How much have you used Markdown to any serious degree, before attempting
this feat?

On 26/05/24 18:28, Gilmeh Serda via Python-list 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:

There are so many "variants", the problem is not "minor"!

Markdown users learn to use their tool (again, see @Grant's question)
and work within the implementation of that "variant".

Like any other non-standardised tool, the users of some particular
'version' often fail to realise that others using different versions may
not enjoy the same experience. Plus-one for standardisation!

At the end of the message, the web.refs reveal use of a package which is
based upon a variant of Markdown that is 20-years old(!), albeit with
some updates to suit yet another variant. Neither variant-author famous
for collaboration. The phrase YMMV springs to mind...

Some ten years ago, an effort was made to standardise Markup, and it
ended-up being called CommonMark. Why is it not called "Standard
Markdown" one might ask? Because the fellow who 'invented' Markdown
objected. This very objection has likely led directly to your
confusions, because the particular PyPi package is based upon that
original definition...

Whereas, Markdown 3.6 is the most-recently updated Markdown search-hit
on PyPi today, have you tried any of the others (which, ironically, may
offer more recent and/or more standardised coverage)?

This has worked in all of the Markdown processors I have used or tried-out:

The (?reasonable) 'common-core', offers single back-ticks for code,
triple back-ticks for a code-block, and the latter with or without a
language specification which *usually* kicks-in syntax highlighting.

> ```python
>
> import os
>
> with open(os.path.join('/home/user/apath', 'somefile')) as f:
> print(f.read())
> ```
>
> However, that is not the case. At least not for me (using Python 3.12.3).

It's not Python 3 that is the problem. It is the "Markdown 3.6" package!

> If instead I type it:

I've not seen the hash-bang combination in-the-wild (but YMMV!)

> #!python
>
> import os
>
> with open(os.path.join('/home/user/apath', 'somefile')) as f:
> print(f.read())
>
> As an indented block (four spaces) and a shebang, THEN it works. You even
> get line numbers by default.

An indented-block is NOT necessarily the same as a code-block - just as
"code" is not necessarily "Python".

Line numbers are great - although if a code snippet is extracted from
the middle of some example code-file, the original line-numbers won't
line-up with Markdown's...

> N.b. if you don't know, you also need to generate a css file using
> pygments to make this work.

That's not what the package's docs suggest:
https://python-markdown.github.io/extensions/fenced_code_blocks/

> Not until I started to read the markdown source code and its docs pages,
> the coin dropped.
>
> I'm posting this for other Markdown newbies that otherwise probably would
> spend hours trying to make it work.
>
>
> Speaking of Markdown. Does anybody out there have any idea how to turn on
> table borders, adjust them (color/width/etc.) and such things? Currently I
> have to add HTML to do so, which works, but isn't very nice. I'd hate to
> spend an additional day or two, hunting for this info.

Again, heavily dependent upon the tool in-use. For example, most SSGs
and doc-tools (which accept Markdown) have a .css or theming-system
which enables 'decorations'.

> References:
> https://pypi.org/project/Markdown/
> https://python-markdown.github.io/

Further reading:
https://en.wikipedia.org/wiki/Markdown
https://commonmark.org
https://pypi.org/search/?q=markdown

--
Regards,
=dn

Subject: Re: Weird Stuff (Markdown, syntax highlighting and Python)
From: Gilmeh Serda
Newsgroups: comp.lang.python
Organization: Easynews - www.easynews.com
Date: Mon, 27 May 2024 22:47 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!weretis.net!feeder8.news.weretis.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!193.141.40.65.MISMATCH!npeer.as286.net!npeer-ng0.as286.net!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx16.ams4.POSTED!not-for-mail
From: gilmeh.serda@nothing.here.invalid (Gilmeh Serda)
Subject: Re: Weird Stuff (Markdown, syntax highlighting and Python)
Newsgroups: comp.lang.python
References: <DEA4O.100038$m2s1.57313@fx04.ams4>
<4Vp4Gz3DDyznVGK@mail.python.org>
<mailman.46.1716835277.2909.python-list@python.org>
MIME-Version: 1.0
x-no-archive: yes
User-Agent: Pan/0.157 (Mariinka; 7c3c6087)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 21
Message-ID: <_385O.370287$XcQd.280824@fx16.ams4>
X-Complaints-To: abuse@easynews.com
Organization: Easynews - www.easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Mon, 27 May 2024 22:47:22 GMT
X-Received-Bytes: 1531
View all headers

On Mon, 27 May 2024 14:41:15 -0400 (EDT), Grant Edwards wrote:

> What markdown rendering engine are you using?

$ python
Python 3.12.3 (main, Apr 23 2024, 09:16:07) [GCC 13.2.1 20240417] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import markdown, pygments
>>> markdown.__version__
'3.6'
>>> pygments.__version__
'2.17.2'

I've been thinking maybe it's some weird text encoding issue. I can use
the indented-by-four-spaces-and-a-shebang for now, it's no big deal.

--
Gilmeh

Satellite Safety Tip #14: If you see a bright streak in the sky coming at
you, duck.

Subject: Re: Weird Stuff (Markdown, syntax highlighting and Python)
From: Thomas Passin
Newsgroups: comp.lang.python
Date: Mon, 27 May 2024 18:08 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: list1@tompassin.net (Thomas Passin)
Newsgroups: comp.lang.python
Subject: Re: Weird Stuff (Markdown, syntax highlighting and Python)
Date: Mon, 27 May 2024 14:08:55 -0400
Lines: 53
Message-ID: <mailman.49.1716851939.2909.python-list@python.org>
References: <DEA4O.100038$m2s1.57313@fx04.ams4>
<f398b7b6-b906-4027-8fac-0350b2222cf0@tompassin.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de T8ytK0i5eQmHPSuzxBk+swIq1juLUXQ24QPqIzkrE5Iw==
Cancel-Lock: sha1:bgKZf/3BRTyAWK3zcbMV7gnCxN4= sha256:MktA9P5wCDGMS0POvs4Pmq5eWKBLUfhF8L7CKx8XUgw=
Return-Path: <list1@tompassin.net>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=tompassin.net header.i=@tompassin.net header.b=YAxMDf/z;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.005
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'file?': 0.05; 'pages,':
0.09; 'python)': 0.09; 'received:23.83.212': 0.09;
'received:elm.relay.mailchannels.net': 0.09; 'url-
ip:151.101.0.223/32': 0.09; 'url-ip:151.101.128.223/32': 0.09;
'url-ip:151.101.192.223/32': 0.09; 'url-ip:151.101.64.223/32':
0.09; 'subject:Python': 0.12; 'url:github': 0.14; 'import': 0.15;
'css': 0.16; 'default.': 0.16; 'markdown.': 0.16;
'received:10.0.0': 0.16; 'received:64.90': 0.16;
'received:64.90.62': 0.16; 'received:64.90.62.162': 0.16;
'received:dreamhost.com': 0.16; 'see?': 0.16; 'subject:syntax':
0.16; 'topic:': 0.16; 'url:project': 0.16; 'url:pypi': 0.16;
'wrote:': 0.16; 'python': 0.16; 'instead': 0.17; 'probably': 0.17;
'to:addr:python-list': 0.20; "i've": 0.22; 'code': 0.23; "i'd":
0.24; 'idea': 0.24; "isn't": 0.27; 'expect': 0.28; 'output': 0.28;
'header:User-Agent:1': 0.30; 'am,': 0.31; 'think': 0.32;
'anybody': 0.32; 'python-list': 0.32; 'received:10.0': 0.32;
'received:mailchannels.net': 0.32;
'received:relay.mailchannels.net': 0.32; 'but': 0.32; "i'm": 0.33;
'there': 0.33; 'mean': 0.34; 'work.': 0.34; 'header:In-Reply-
To:1': 0.34; 'trying': 0.35; 'work,': 0.36; 'source': 0.36;
'currently': 0.37; 'using': 0.37; 'file': 0.38; 'read': 0.38;
'least': 0.39; 'otherwise': 0.39; 'block': 0.39; 'table': 0.39;
'case.': 0.40; 'should': 0.40; 'url-ip:151.101.0/24': 0.62; 'url-
ip:151.101.128/24': 0.62; 'url-ip:151.101.192/24': 0.62; 'url-
ip:151.101.64/24': 0.62; 'hours': 0.63; 'claims': 0.64;
'speaking': 0.64; 'spend': 0.64; 'day': 0.66; 'numbers': 0.67;
'header:Received:6': 0.67; 'received:64': 0.67; 'factor': 0.69;
'it:': 0.69; 'html': 0.80; 'coin': 0.84; 'flavors': 0.84;
'markdown': 0.84; 'minor': 0.84; 'subject:Weird': 0.84
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1716833336; a=rsa-sha256;
cv=none;
b=UnYCWYWIoPl2XUs/l5rx1yXQ/d4xjDCrBaZZ0KpnuQkIzGa9G9sop3BKN3lPdoiPthaT6y
mgdrJ5tKv7qktT4hXpDYK5sdcQ+joEzAQJo84wRvQ+5ZJfgVN+TkIES7cAnv7jAZghu7N+
zH6hhdj1kYxGyE/VgezlQn8YZ2qRjj+oZVKKfkOpYsedVC6rpyuctUeptyeTtNFY7oQC0d
tOg5nNIjcq5YZPw5eqUWJKNF9KqdGikEXrUYeD6rah9tENrY/lG8+LTc9MTDL7Jg6dmYAa
B2q2b6ahFE+cltBLGYnpVxT9mJiEQ89XTnNJaZwN7IEyuUErBL7Y2CrKlZVE3w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=mailchannels.net; s=arc-2022; t=1716833336;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:dkim-signature;
bh=s5lKJ6vO9q1k75ZhoT5zE6GGVkdrEKnf9MgajLz1l2o=;
b=FpX4mVt3Yu0F/Rc9KiABgqhUZvcjax7YuA0eElpU7l1k4/ch5kfX66wvtUuf9fOSayFJux
o8tboQYRSBZjdEpzAhngdwCiikVKmPFPN54B6jCy4UZy3hC8dcVvHu3cxbxTdbKqaS3K2h
LNiAH4DGp7MAkjUfT3eAcrIvbMD/6wQe0fNnyRs52Li/uvgMzy+Rjtkk7b1a2IC2aQpklv
mz1ZHZnHR2Ex8cqOG8QbrmkuXNDyxVDKoPQW43gfeG5HRI9JSIdwJ+B1hUWAdAghaTgdah
0ZxIdkHATVN6W9hBhB0rOkS3ybF+CyRXSx4fNsRgQgfpYJReZRJMzMRiCepwBg==
ARC-Authentication-Results: i=1; rspamd-5d55749bb4-vpx52;
auth=pass smtp.auth=dreamhost smtp.mailfrom=list1@tompassin.net
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|tpassin@tompassin.net
X-MailChannels-Auth-Id: dreamhost
X-Harbor-Quick: 4ebb8fd115486c08_1716833337168_3913245755
X-MC-Loop-Signature: 1716833337168:154878411
X-MC-Ingress-Time: 1716833337168
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tompassin.net;
s=dreamhost; t=1716833336;
bh=s5lKJ6vO9q1k75ZhoT5zE6GGVkdrEKnf9MgajLz1l2o=;
h=Date:Subject:To:From:Content-Type:Content-Transfer-Encoding;
b=YAxMDf/zuX6UGMhZgNAbT6tC220gawnj7aRUbB228BSvTJsLBeSDmZ3R9mYQRFDXz
fqhUTk9ho+nzVNO9XlX3K3zycjfYASl8atUT0iLQ+r+XSrtvUtjPdZAOzI1DxyhJX8
STHEQgnu0ZQIQnOzRUi0yf4n7Z4eGbbaOJzhxqQ4T/qVx+TXBStW+PPN+AaXYgwOqM
hMn2kpfN00lj8UDJwvggl8axidbgLXJS+k65zWXu6FL6wGAcoql7Q0vF7HH5uqHVwE
B3x+LOWOiqLLVWiokCnqY6059SPRuvEE/lBRNSAj6X2EIefUZAB3/4S82SGV9oM0lE
jOnsziQPf1Hzg==
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <DEA4O.100038$m2s1.57313@fx04.ams4>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <f398b7b6-b906-4027-8fac-0350b2222cf0@tompassin.net>
X-Mailman-Original-References: <DEA4O.100038$m2s1.57313@fx04.ams4>
View all headers

On 5/26/2024 2:28 AM, Gilmeh Serda via Python-list 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())
> ```

There are different flavors of Markdown, so that might be a factor so
far as details of the block are concerned.

What do you mean by it not "working"? What do you see and what did you
expect to see? What did you see different when you used the next example?

How did you generate the output HTML file?

> However, that is not the case. At least not for me (using Python 3.12.3).
> If instead I type it:
>
> #!python
>
> import os
>
> with open(os.path.join('/home/user/apath', 'somefile')) as f:
> print(f.read())
>
> As an indented block (four spaces) and a shebang, THEN it works. You even
> get line numbers by default.
>
> N.b. if you don't know, you also need to generate a css file using
> pygments to make this work.
>
> Not until I started to read the markdown source code and its docs pages,
> the coin dropped.
>
> I'm posting this for other Markdown newbies that otherwise probably would
> spend hours trying to make it work.
>
>
> Speaking of Markdown. Does anybody out there have any idea how to turn on
> table borders, adjust them (color/width/etc.) and such things? Currently I
> have to add HTML to do so, which works, but isn't very nice. I'd hate to
> spend an additional day or two, hunting for this info.
>
> References:
> https://pypi.org/project/Markdown/
> https://python-markdown.github.io/
>

Subject: SOLVED! Re: Weird Stuff (Markdown, syntax highlighting and Python)
From: Gilmeh Serda
Newsgroups: comp.lang.python
Organization: Easynews - www.easynews.com
Date: Tue, 28 May 2024 18:49 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.szaf.org!news.enyo.de!news.uni-stuttgart.de!npeer.as286.net!npeer-ng0.as286.net!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx04.ams4.POSTED!not-for-mail
From: gilmeh.serda@nothing.here.invalid (Gilmeh Serda)
Subject: SOLVED! Re: Weird Stuff (Markdown, syntax highlighting and Python)
Newsgroups: comp.lang.python
References: <DEA4O.100038$m2s1.57313@fx04.ams4>
<f398b7b6-b906-4027-8fac-0350b2222cf0@tompassin.net>
<mailman.49.1716851939.2909.python-list@python.org>
MIME-Version: 1.0
x-no-archive: yes
User-Agent: Pan/0.157 (Mariinka; 7c3c6087)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 7
Message-ID: <CGp5O.139917$m2s1.20858@fx04.ams4>
X-Complaints-To: abuse@easynews.com
Organization: Easynews - www.easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Tue, 28 May 2024 18:49:06 GMT
X-Received-Bytes: 1023
View all headers

Solved by using a different method.

--
Gilmeh

Hedonist for hire... no job too easy!

Subject: Re: SOLVED! Re: Weird Stuff (Markdown, syntax highlighting and Python)
From: o1bigtenor
Newsgroups: comp.lang.python
Date: Wed, 29 May 2024 10:44 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: o1bigtenor@gmail.com (o1bigtenor)
Newsgroups: comp.lang.python
Subject: Re: SOLVED! Re: Weird Stuff (Markdown, syntax highlighting and Python)
Date: Wed, 29 May 2024 05:44:50 -0500
Lines: 10
Message-ID: <mailman.57.1716979529.2909.python-list@python.org>
References: <DEA4O.100038$m2s1.57313@fx04.ams4>
<f398b7b6-b906-4027-8fac-0350b2222cf0@tompassin.net>
<mailman.49.1716851939.2909.python-list@python.org>
<CGp5O.139917$m2s1.20858@fx04.ams4>
<CAPpdf5-mFwc_Mtrkw_jYaGj_kUPdbCh2_bX5=b3qNJzz4e02Ag@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de T4bzKMCrJg9JnQtlosKT/wOzJzDZx/0mTv4FWAtuRWXA==
Cancel-Lock: sha1:OkeHxZ/Ffz1Q3eLRsNJDPwio5N8= sha256:AbUaKpOhF3MDdsQeh7VlEljbXqMov3gXko5iXsti76w=
Return-Path: <o1bigtenor@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=NwMO4lK0;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.049
X-Spam-Evidence: '*H*': 0.91; '*S*': 0.01; 'cc:addr:python-list':
0.09; 'email addr:python.org>': 0.09; 'subject:Python': 0.12;
'cc:no real name:2**0': 0.14; '2024': 0.16; 'solved': 0.16;
'subject:syntax': 0.16; 'wrote:': 0.16; 'tue,': 0.19;
'cc:addr:python.org': 0.20; 'cc:2**0': 0.25; 'email
addr:python.org&gt;': 0.28; 'python-list': 0.32; 'message-
id:@mail.gmail.com': 0.32; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'from:addr:gmail.com': 0.35; 'using':
0.37; 'to:none': 0.60; 'email name:&lt;python-list': 0.84;
'subject:! ': 0.84; 'subject:Weird': 0.84; 'received:mail-
lj1-x22b.google.com': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1716979527; x=1717584327; darn=python.org;
h=cc:subject:message-id:date:from:in-reply-to:references:mime-version
:from:to:cc:subject:date:message-id:reply-to;
bh=67Yk+jlUP4wgpkE0tCbNBkO+Ju/NN+aHr0OI0ejYP5k=;
b=NwMO4lK0IYuF9doKKoL4QPqLQiODPfPV5FyuY3NK7rZX8q4WnJYsz3SeDPuo7SXcNp
mabMFVivp8QXyCxcyy/kGAgqcK1Fh708aRmTW+k8fGfDYfFbmPaSZtUJMkBp5lyq6gd2
FfS+5ey3pUyhVk9MXnMlNuTF55xafKtwbApDpojgpA2sJrk9lOUlI+3OOI+4JbUslQ57
scsETpgLGp00CBL6SPAALms895wBldBNx0fMchwajplRQz37jdiOsDAcIh+l5gLzJU79
uWeHcebcQagNGuJqBpDZZIc2FRVB+nLeXpqIC3G1/PnH+AyFPxANew+B2otPE/TFZf8M
Jx0A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1716979527; x=1717584327;
h=cc:subject:message-id:date:from:in-reply-to:references:mime-version
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=67Yk+jlUP4wgpkE0tCbNBkO+Ju/NN+aHr0OI0ejYP5k=;
b=GeuAsh2cnjkdOkZUVIOj7RCIqAUIy6EDG+BR7ws0P77obSQkVHj0QNxH1h9uqU+g2I
gzot1SwXRd6+3mt+1ejgC/dDIgDclbsQHwjeNbf5xpZJoN9ikTzRFOm29QCnwW5RPlqi
tdww4vVvdqyOS+HZS6X4GUWRTNEzakJkVpFEOBUyDR1wg0gDFf3iwTO1NECjdi7D9JA5
XqxU4HoIF8uOCBXdkKTv09wCYiJJgQvAtBl3JpHYBjis3YA/IIQtbpV16P2hbVAu0SYx
fNOpwT4/Mo2/x0UJnHy9eYVnabZq/2WZu47s+nN6Jn3EVJw4EDp47iX5vtCtXsGlLvx/
4huA==
X-Gm-Message-State: AOJu0Yz7CeNXoW+Ea4DRMgIqpMMOkEXNTbvm3LbIwv5DSE4OBXujWF26
4MTIsnpJAeKh2U4mdrBxi28OTmM1HrqMjPNOyx19YYWAQZWNWojSxuZ6WSem9FMlFTFZXMrFQp9
IHrgVt0kJDEuKL0aIHyB3lEC0rVV4FQ==
X-Google-Smtp-Source: AGHT+IFj+oqvAfEqPiPZg7mZJNr2sLnwfvLp22XMp4lOgA6euJ2LYxeRQVJ9QcqDaVJvc6TTWbKC5U2fjp4tpsUcO+M=
X-Received: by 2002:a05:651c:a0c:b0:2e9:756f:cde0 with SMTP id
38308e7fff4ca-2e9756fcf00mr68359131fa.23.1716979526909; Wed, 29 May 2024
03:45:26 -0700 (PDT)
In-Reply-To: <CGp5O.139917$m2s1.20858@fx04.ams4>
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CAPpdf5-mFwc_Mtrkw_jYaGj_kUPdbCh2_bX5=b3qNJzz4e02Ag@mail.gmail.com>
X-Mailman-Original-References: <DEA4O.100038$m2s1.57313@fx04.ams4>
<f398b7b6-b906-4027-8fac-0350b2222cf0@tompassin.net>
<mailman.49.1716851939.2909.python-list@python.org>
<CGp5O.139917$m2s1.20858@fx04.ams4>
View all headers

On Tue, May 28, 2024 at 9:48 PM Gilmeh Serda via Python-list <
python-list@python.org> wrote:

>
> Solved by using a different method.
>
>
- - - And that was how?

TIA

Subject: Re: SOLVED! Re: Weird Stuff (Markdown, syntax highlighting and Python)
From: dn
Newsgroups: comp.lang.python
Organization: DWM
Date: Wed, 29 May 2024 21:59 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: PythonList@DancesWithMice.info (dn)
Newsgroups: comp.lang.python
Subject: Re: SOLVED! Re: Weird Stuff (Markdown, syntax highlighting and Python)
Date: Thu, 30 May 2024 09:59:24 +1200
Organization: DWM
Lines: 17
Message-ID: <mailman.70.1717019978.2909.python-list@python.org>
References: <DEA4O.100038$m2s1.57313@fx04.ams4>
<f398b7b6-b906-4027-8fac-0350b2222cf0@tompassin.net>
<mailman.49.1716851939.2909.python-list@python.org>
<CGp5O.139917$m2s1.20858@fx04.ams4>
<604b6d02-bace-430c-96fd-717faf0a1be3@DancesWithMice.info>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de PXDO27B8NRbwdJSgtPf+dABUDNOYvdxVvdnBEm/XbzrQ==
Cancel-Lock: sha1:MBWqaZz8TvZTs2iabcMMDNPlR/U= sha256:pNmZnGWX35XmFFM5/uhMYRr4r2c+5bjKoHApKBpHiuU=
Return-Path: <PythonList@DancesWithMice.info>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=danceswithmice.info header.i=@danceswithmice.info
header.b=BvCy07QP; dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.011
X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'despite': 0.05; '=dn':
0.09; 'from:addr:danceswithmice.info': 0.09;
'from:addr:pythonlist': 0.09; 'received:192.168.1.64': 0.09;
'subject:Python': 0.12; 'explaining': 0.16; 'message-
id:@DancesWithMice.info': 0.16; 'received:cloud': 0.16;
'received:rangi.cloud': 0.16; 'solved': 0.16; 'subject:syntax':
0.16; 'wrote:': 0.16; 'problem': 0.16; 'to:addr:python-list':
0.20; '(and': 0.25; 'seems': 0.26; 'header:User-Agent:1': 0.30;
'community': 0.31; 'header:Organization:1': 0.31; 'python-list':
0.32; 'received:192.168.1': 0.32; 'header:In-Reply-To:1': 0.34;
'people': 0.36; 'using': 0.37; 'received:192.168': 0.37;
'similar': 0.65; 'manner': 0.69; 'content': 0.72; 'combination':
0.76; 'subject: \n ': 0.84; 'subject:! ': 0.84; 'subject:Weird':
0.84
DKIM-Filter: OpenDKIM Filter v2.11.0 vps.rangi.cloud 886033B5E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=danceswithmice.info;
s=staff; t=1717019970;
bh=V70N8Fdtj7e4ycsuO5aNzkwFR6Zn74o0OmoHC9xtSLU=;
h=Date:From:Subject:To:References:In-Reply-To:From;
b=BvCy07QPDBxMC255I/69aWHjKm0rOVHYtUtZ9Rj5a2En+4C+yXXapwW7AJF+fOF2/
PZnmgLwSetgG0es3xhvqVLwOqh1AeWS+stsWoyVJSCiBygT9+WtAQwAdScClwiJznJ
X9IMgi4J72VrxBFhbEid18C+v4D+LtQ3pRAA7no2eTet6YrmJoXYKCUW7rKd3oLJC2
T6mk+V99oDJJiq57+1D7pcl4TlHS//L7Nl+OWG3AJdO4ezXmUGjKs2t4PwALq4/Ss9
VTZii7XHuBFPCzHPhHTpHRPC3ailmSmqo8jH4Tv6oSkT2SSWb3LUQZJ06seebJQ32Y
gye7dWKWqapDQ==
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <CGp5O.139917$m2s1.20858@fx04.ams4>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <604b6d02-bace-430c-96fd-717faf0a1be3@DancesWithMice.info>
X-Mailman-Original-References: <DEA4O.100038$m2s1.57313@fx04.ams4>
<f398b7b6-b906-4027-8fac-0350b2222cf0@tompassin.net>
<mailman.49.1716851939.2909.python-list@python.org>
<CGp5O.139917$m2s1.20858@fx04.ams4>
View all headers

On 29/05/24 06:49, Gilmeh Serda via Python-list wrote:
>
> Solved by using a different method.

> Hedonist for hire... no job too easy!

This combination of sig-file and content seems sadly ironic.

How about CONTRIBUTING to the community by explaining 'the solution' to
people who may find a similar problem - in the similar manner to the
various members who have helped YOU, voluntarily (and despite the
paucity of source-information and response)?

--
Regards,
=dn

1

rocksolid light 0.9.8
clearnet tor