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

Improve CI interface #53

Open
westurner opened this issue Oct 1, 2020 · 6 comments
Open

Improve CI interface #53

westurner opened this issue Oct 1, 2020 · 6 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@westurner
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Use case: Render a snippet of markdown in a file on disk into HTML.

Describe the solution you'd like

A commandline interface to parse markdown and render HTML (and optionally configure markdown-it-py first)

Describe alternatives you've considered

I could write a script with an argparse.ArgumentParser and use that; but that might as well just be a console_scripts entry_point in markdown-it-py; in which case an actual argparse.ArgumentParser is justifiied.

Additional context

None

@westurner westurner added the enhancement New feature or request label Oct 1, 2020
@welcome
Copy link

welcome bot commented Oct 1, 2020

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.

If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).

Welcome to the EBP community! 🎉

@chrisjsewell chrisjsewell changed the title ENH: CLI interface to parse markdown and render HTML Improve CI interface Oct 1, 2020
@chrisjsewell chrisjsewell added documentation Improvements or additions to documentation enhancement New feature or request and removed enhancement New feature or request labels Oct 1, 2020
@chrisjsewell
Copy link
Member

chrisjsewell commented Oct 1, 2020

Heya, note there is already a CLI interface (accepts a file or starts in interactive mode):

$ markdown-it
markdown-it-py [version 0.1.0] (interactive)
Type Ctrl-D to complete input, or Ctrl-C to exit.
>>> > **hallo** there!
...
<blockquote>
<p><strong>hallo</strong> there!</p>
</blockquote>

Its not particularly well documented though, and it can't be configured, so indeed these could be improved.

See: https://github.com/executablebooks/markdown-it-py/blob/master/markdown_it/cli/parse.py

@westurner
Copy link
Contributor Author

westurner commented Oct 1, 2020

I should've looked more closely for the entry_point in setup.py.

@westurner
Copy link
Contributor Author

westurner commented Oct 1, 2020

  • ENH: Add output path(s)?
  • ENH: Add way to do configuration
    • Discussion: INI / TOML / YAML / Python and/or lots of --args-to-test

westurner added a commit to westurner/markdown-it-py that referenced this issue Oct 1, 2020
westurner added a commit to westurner/markdown-it-py that referenced this issue Oct 1, 2020
westurner added a commit to westurner/markdown-it-py that referenced this issue Oct 1, 2020
@westurner
Copy link
Contributor Author

westurner added a commit to westurner/markdown-it-py that referenced this issue Oct 1, 2020
westurner added a commit to westurner/markdown-it-py that referenced this issue Oct 1, 2020
hukkin pushed a commit to hukkin/markdown-it-py that referenced this issue Feb 15, 2021
@Dobatymo
Copy link

Windows requires Ctrl-Z instead of Ctrl-D to complete input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants