-
Notifications
You must be signed in to change notification settings - Fork 88
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
Markdown support #1
Comments
Fixes: pypaGH-1
See #3 |
Fixes: pypaGH-1
Fixes: pypaGH-1
Fixes: pypaGH-1
Fixes: pypaGH-1
Fixes: pypaGH-1
Fixes: pypaGH-1
Fixes: pypaGH-1
Fixes: pypaGH-1
I for one support this as it is a pain having to convert tables that can be in the readme to restructured text that can very easily break the tables. This would then brevent such breakage of them. |
Having just pushed: I searched and found this issue. It does not look impossible to classify markdown vs restructurextext documents, having a module to tell them appart may be a good start that may be upgraded later (like getting the information from the setup instead of guessing?), what do you think? Should I try to do it? |
I tried if it was possible to tell appart md or rst with the content only, looks not that hard: https://github.com/JulienPalard/mdorrst It's slightly biaised towards rst, which is not bad for this usage. It may be used as a temporary solution for |
@JulienPalard love the idea behind |
Another thing I want in the markdown support. The good old fashoned checkboxes like so: |
@ewdurbin Support for Python 2.7 done in mdorrst 0.3.0:
|
@JulienPalard awesome, thanks. i know it's a headache :) |
nice, what about cases like these: >>> mdorrst.from_text("### Some Heading")
>>> mdorrst.from_text("<!-- some html comment. -->")
>>> mdorrst.from_text("- [ ]")
>>> mdorrst.from_text("- [x]") ? Good thing I know that markdown also supports html stuff as well unlike rst. |
Looks right: it will be rendered properly in makdown.
As there is no clear indication that it's in fact markdown, fallback to text looks legitimate. It can be markdown as HTML is allowed, but it can be HTML, we can't tell the writer intention from this. It's really easy to hit "md" on this by adding
Those kind of checks list looks natively supported in markdown and are legitimate to use in reStructuredText, so no really clear indication here. Without clear indication the fallback is text. Again it's really easy to modify by adding a But please note that READMEs are typically longer than that, so the detection is better (see the successfull detection of like 2k real life READMEs in the Also please note that this solution can be considered a fallback of a more robust one (like asking for the filename or type in the Finally, it can probably be enhanced, just it's actually better than nothing. |
I agree. |
Recent days, many python project have README in Markdown format.
The text was updated successfully, but these errors were encountered: