Closed pokemaniac05 closed 2 years ago
There are several issues with this, the most important is: That ToC viewer is not designed for universal support (it does even say so in the source code comments). So, with any given .md file, anything could happen - even if all the files you tested caused no trouble. You also used tabs instead of spaces (GodMode9 uses spaces) and the MD support directory plus the additional HOME menu entry is too much for something that's not a "main" feature (this is still GodMode9, not MarkDown9 now).
That being said, I'm not against a universal Markdown viewer, but it also needs universal compatibility then, and it would need no more integration but the A button menu. Can't merge this like it is, so I'm closing it for now.
I added markdown viewer (referred as
MD ToC Viewer
) feature, as seen inHOME
->More...
->Show ReadME
to every.md
file in sdcard and other partitions. To view these file, user has to press A and selectView in MD ToC Viewer
. I also added aMarkdown...
menu to view files inside0:/gm9/markdown
(likeScripts...
andPayloads...
menus). Finally I editedShow ReadME
to enter .md file name via soft keyboard (to let user view other .md files added to VRAM at compile time).I tested code changes on Old2DS and they work.