Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Should be complied with Commonmark #338

Closed

Description

@lipis

I'm guessing many people already seen this:

http://standardmarkdown.com/

and the very interesting introduction by Jeff Atwood: http://blog.codinghorror.com/standard-flavored-markdown/

Activity

  1. minektur commented on Sep 5, 2014

    @minektur

    +1 : I think Standard Markdown support would be great.

    I wonder how easy it is to run python-markdown through their compliance tests? hm..

  2. minektur commented on Sep 5, 2014

    @minektur

    and... I guess it would make sense to have both 'traditional' and 'Standard' modes? I think it would be
    unpleasant for projects depending on the current markdown behavior to wake up and find no support?

  3. lipis commented on Sep 5, 2014

    @lipis
    Author

    one is more than enough to support.. if you don't want to break things.. stay in the older version.. and just comply with standards..

  4. waylan commented on Sep 6, 2014

    @waylan
    Member

    Consider the goals of Python-Markdown (restated here):

    • Maintain ... an implementation of the markdown parser that follows the syntax rules and the behavior of the original (markdown.pl) implementation as reasonably as possible.
    • Provide an Extension API which makes it possible to change and/or extend the behavior of the parser.

    CommonMark (the (third) name as of this writing) does not meet the first goal, and so the Python-Markdown project has no interest of providing an implementation that meets that spec. However, given our second goal, you should be able to use our parsing engine to create a python implementation of CommonMark. In fact, the parser is built in such a way that the parsing engine could be used to parse some other, not-markdown-inspired text based markup language.

    I would imagine that almost the entire set of blockprocessors in Python-Markdown would need to be rewritten, so the way I would do it would be to subclass markdown.Markdown and override the build_parser method. I think reading the source code should be able to guide you from there. Of course, as no one has actually used our parsing engine to built something else, I'm open to general improvements to the underlying engine that might make it easier. But those improvements must not alter the current implementation's behavior. And I would expect those who want the changes to do the work. I don't mind reviewing pull requests.

    And that is all I have to say on the subject. Please don't ask me to reconsider. Thank you.

  5. nhinkle commented on Oct 6, 2014

    @nhinkle

    and so the Python-Markdown project has no interest of providing an implementation that meets that spec

    As the creator of the project it's certainly your right to not have an interest in implementing the CommonMark spec and not to allow it, but it's false to say "the project" has no interest since the very existence of this request indicates that at least some people who use the project would like to see it go that direction.

  6. lipis commented on Oct 6, 2014

    @lipis
    Author

    @nhinkle And it is kind of nice direction.. but as the creator said.. we are not allowed to ask him to reconsider.. 😜

  7. nhinkle commented on Oct 6, 2014

    @nhinkle

    @lipis you and others may be interested in commonpark-py.

  8. locked and limited conversation to collaborators on Jul 29, 2015
  9. changed the title [-]Should be complied with Standard Markdown[/-] [+]Should be complied with Commonmark[/+] on Feb 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions