-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add flag to CLI to generate text READMEs #47
Comments
Hello @olistic , |
Hello @justdvnsh, that'd be awesome. How are you planning to tackle this? |
So, i guess , after adding the
What do you think ? Will this approach work ? It's a bit tedious though ! |
There are some libraries that strip markdown formatting characters from text you can try, like remove-markdown, but I don't know how well they'll fit our use case. What if you just create another |
Yes , using an ejs template seems like a pretty good option . We can make the characters dynamic . But still, we would need to change all the readme files to add the dynamic content. So , I guess , instead of attaching readme files with the game , we can attach those ejs templates with the static data, in which the dynamic data ( i.e. markdown formatting chars ) will be populated on the fly , after the user specifying wether he needs markdown or text . How about that ? Sounds good ? |
If I understood correctly, you're suggesting using the existing template but making the markdown formatting characters visible only when markdown is enabled? I thought of that but I think the template will get too convoluted. That's why I suggest having another template/set of templates called Markdown: # Spartacus - beginner
## Level 1
... Text: Spartacus - beginner
--------------------
Level 1
... |
Yes ,you understood that correctly. Yes , even I was wondering, that it will convolute the template . But I didn't really understand the solution you gave . If we will be using the README.txt.ejs template , then what will get added to it ( what will be the dynamic data ? |
The existing template is called |
Okay yes . That sounds a pretty good solution. |
Go for it! Thanks |
Sure thing ! |
Level READMEs in markdown format could be great if you're using some kind of markdown processor to read them. If you're not planning on doing so, having the markdown syntax laying around creates noise. Running
warriorjs --no-markdown
should take care of that, and output toREADME.txt
instead ofREADME.md
.The text was updated successfully, but these errors were encountered: