You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When inputting usernames (Twitter, Github, Linkedin or Patreon) with a trailing underscore (i.e foo_), a backward slash is inserted before the trailing underscore leading to errors loading the badge correctly and having to manually fix it.
To Reproduce
Steps to reproduce the behavior:
Input:
GitHub username (use empty value to skip) foo_
Output
GitHub username (use empty value to skip) foo\_
Run npx readme-md-generator
Skip to username input part
When asked to input Github username, key in foo_
See error
ScreenShot
Desktop:
OS: [MacOS Catalina]
Version [10.15.3]
The text was updated successfully, but these errors were encountered:
I am getting wrong username values for my username at twitter.
Pretty sure its happening because of the escapeMarkdown function that is being called in cleanSocialNetworkUsername function.
Interesting. Is that an option we get with that package. I'm not entirely sure why we are escaping markdown text anyway. It's not we are having to worry about other users injecting code into our readme. We aren't parsing users text and turning it into a readme. So why we are trying to escape the text I don't understand. If anyone has more insight and its something I'm missing. Please let me know.
Description
When inputting usernames (Twitter, Github, Linkedin or Patreon) with a trailing underscore (i.e foo_), a backward slash is inserted before the trailing underscore leading to errors loading the badge correctly and having to manually fix it.
To Reproduce
Steps to reproduce the behavior:
Input:
Output
npx readme-md-generator
foo_
ScreenShot
Desktop:
The text was updated successfully, but these errors were encountered: