Skip to content

Markdown tables not rendered as tables #64

Closed

Description

@mikecharles

I'm using the following command:

pdoc test.py --html

to create an API doc for the following Python script:

#!/usr/bin/env python

def test():
    """
    Test function

    | Tables        | Are           | Cool  |
    | ------------- |:-------------:| -----:|
    | col 3 is      | right-aligned | $1600 |
    | col 2 is      | centered      |   $12 |
    | zebra stripes | are neat      |    $1 |
    """
    pass

Here's the resulting HTML:

issue

Shouldn't pdoc handle any standard markdown syntax?

Activity

  1. mikecharles commented on Aug 27, 2015

    @mikecharles
    Author

    Sorry, nevermind, I didn't even realize tables were not a part of standard Markdown. Would it be easy to add it with this?

  2. BurntSushi commented on Aug 27, 2015

    @BurntSushi
    Contributor

    I generally like Github's version of Markdown, so I wouldn't mind swapping what we have for that.

    However, I think my strongest preference would be for CommonMark. Does that have tables?

  3. mikecharles commented on Aug 27, 2015

    @mikecharles
    Author

    Seems like many people don't think tables should even be part of the core spec for Markdown in version 1.0, so it's probably far off...

  4. rjmoggach commented on Jan 10, 2016

    @rjmoggach

    +1 for tables...

    maybe a pluggable rendering engine would be nice??

  5. cortesi commented on Jun 3, 2018

    @cortesi
    Member

    Please see #153 for a unified discussion ticket about docstring flavors.

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