Open LukeEff opened 1 year ago
Yeah I had to fix it manually, this is most likely due to mkdocs having a different processor than the one used by ~mkdocs~ GitHub I'm afraid
You're right, I'm looking through the wiki right now.
mkdocs claims to use the Python Markdown library for translating the Markdown to html.
I have successfully replicated the issue by using their interpreter via a script i threw together:
import markdown
with open("docs/Mod-Creation/C#-Programming/Debugging-Your-Mods.md", "r", encoding="utf-8") as input_file:
text = input_file.read()
html = markdown.markdown(text)
print(html)
https://github.com/Python-Markdown/markdown/issues/3#issuecomment-63399983
Must be 4 spaces for indentation to be registered for python-markdown, while Github's website uses an internal processor that allows a few as 2 spaces to count as an indentation.
I noticed in a recent PR I merged the markdown has not formatted as I expected in the wiki.Particularly, Most of the indented lists were not recognized by the live website.
Here's an example of the discrepancy.
And here's the code: https://github.com/risk-of-thunder/R2Wiki/blob/master/docs/Mod-Creation/C%23-Programming/Debugging-Your-Mods.md?plain=1#L165-L189
If this is working as intended, is there a syntax issue (such as improper spacing) that results in it not processing properly? Also, is there a markdown processing plugin that can be installed that better reflects the "live website"?