Skip to content
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

How to access the markdown file? #1

Open
sati-bodhi opened this issue Apr 10, 2018 · 1 comment
Open

How to access the markdown file? #1

sati-bodhi opened this issue Apr 10, 2018 · 1 comment

Comments

@sati-bodhi
Copy link

Sorry, I am new to python. I was trying out the function with your example given. But I always end up with a 'module' object is not callable' error. Where did I go wrong?

In [29]: path='/Users/satibodhi/Desktop/chikin.md'

In [30]: md_file=open(path,'r')

In [31]: md2py(md_file)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-31-5e87db4ab0f6> in <module>()
----> 1 md2py(md_file)

TypeError: 'module' object is not callable

In [32]: md2py(markdown)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-32-ce63b0909e59> in <module>()
----> 1 md2py(markdown)

TypeError: 'module' object is not callable
@dolph
Copy link

dolph commented Dec 28, 2018

The docs don't show the import. To make the docs work, you need to import md2py from md2py first.

Alternatively, you can import md2py and use md2py.md2py() instead of a bare call to md2py().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants