How I discover that markdownlint run in python 2
# How to I discover that markdownlint run in python 2
#tech/python #story
When I was trying to solve a format problem with my notes (more especifically with how to scan images using the terminal), I had this kind a content in the note:
|
|
no extra spaces before the bullets, nothing, just that content.
Which lead to an error after my build script and starting the local server. The error was saying something that the markdown was detected as a YAML file by Hugo, or something like that.
Few searches later I found this comment:
You need to have ==python 2== for it to work. This is because the pam-python module only operates on python 2. If you have python 2 you should not have to worry about ConfigParser not being installed because it should be part of the standard library. …
The important thing is that it mention that is python 2. So I started switching versions with pyenv and Pipenv and then changing to python 2.7.18 it works.
The thing is that does not do what I want it. Wich was to add an extra space before the list or something alike. But that’s ok, here we have another one to the “Overthinking stories” vault.