Coder Social home page Coder Social logo

python-markdown-generator's People

Contributors

117503445 avatar dependabot[bot] avatar nicceboy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

python-markdown-generator's Issues

Bugs in the packaging

Just going thru the project and noticed following:

  1. Example in readme says:

from markdowngenerator import MarkdownGenerator

This triggers following error:

>>> from markdowngenerator import MarkdownGenerator
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'MarkdownGenerator' from 'markdowngenerator' (/Users/rasjani/src/omat/ghteststatus/venv/lib/python3.9/site-packages/markdowngenerator/__init__.py)
  1. To get rid of that, changing the import from MarkdownGenerator to all lowercase, bypasses above issue but then:
>>> from markdowngenerator import markdowngenerator
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/rasjani/src/omat/ghteststatus/venv/lib/python3.9/site-packages/markdowngenerator/markdowngenerator.py", line 10, in <module>
    from .config.syntax import (
ModuleNotFoundError: No module named 'markdowngenerator.config'
>>>

Package requirements changed

ERROR: Package 'python-markdown-generator' requires a different Python: 3.9.0 not in '>=3.10,<4.0'

This is intentional?

Thanks,
Theo

Error with pip install

I have errors with correctly instalation this package from pip.

ModuleNotFoundError: No module named 'markdowngenerator.config'

I was install this package manually, but I want include this package to requirements.txt and users will have this problem.

confusing function naming

Hi, thanks for the nice library. I'm using it to generate some md docs and then using reveal.js to host a mini-web of slides.

I'm wondering if it would be nicer if make the lib more functional by touching function names a bit, to rename some of the functions from addXXX(write_to_fle = false) to get_xxx() and return the markdown raw string instead.

Could be used to generate markdown files for Pelican?

@Nicceboy I've been playing with your code and was curious if this could be adapted to extended to start generating the keyboard-review.md on step 3 of this Pelican Tutorial

Does this work with Mermaid for charts?

Now if, and that might be a big if, I'm wanting to know how I could extend what you wrote to write more keyboard-review.md type blog posts. I do lots of Natural Language Processing and Machine Learning so being able to generate .md files is a very helpful tool... and If I can adapt it to Pelican now I've mostly automated a blog and website.

AttributeError: 'MarkdownGenerator' object has no attribute 'file'

Hi,

Thank you for this great library,

It seems that the following exception is being raised whenever i use the context manager of the library:

File ~/libdoc-markdown/.tox/ipython/lib/python3.10/site-packages/markdowngenerator/markdowngenerator.py:232, in MarkdownGenerator.genTableOfContent(self, linenumber, max_depth)
    230 if self.enable_write:
    231     self.document.close()
--> 232     self.document = open(self.file, "w")
    233     self.document.writelines(self.document_data_array)

AttributeError: 'MarkdownGenerator' object has no attribute 'file'

Most probably is a mistypo: self.filename rather than self.file

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.