镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

allow string arg from command line - #1182

Merged
joshbruce merged 4 commits into
markedjs:masterfrom
UziTech:cmd-string
Apr 5, 2018
Merged

joshbruce merged 4 commits into
markedjs:masterfrom
UziTech:cmd-string

Conversation

@UziTech

@UziTech UziTech commented Mar 28, 2018 •

Copy link
Copy Markdown
Member

Marked version: 8489411

Description

Allow marked to use a string argument as input.

$ marked --string "*test*"
<p><em>test</em></p>

$ marked -s "*test*"
<p><em>test</em></p>

Contributor

  • Test(s) exist to ensure functionality and minimize regression (if no tests added, list tests covering this PR); or,
  • no tests required for this PR.
  • If submitting new feature, it has been documented in the appropriate places.

Committer

In most cases, this should be a different person than the contributor.

  • Draft GitHub release notes have been updated.
  • CI is green (no forced merge required).
  • Merge PR

@styfle styfle left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised this wasn't there before

@UziTech

UziTech commented Apr 2, 2018

Copy link
Copy Markdown
Member Author

I was too. You could use stdin but not an argument.

@styfle

styfle commented Apr 2, 2018

Copy link
Copy Markdown
Member

@UziTech Can you add docs for this new feature?

@UziTech

UziTech commented Apr 2, 2018

Copy link
Copy Markdown
Member Author

I added an example to the docs readme.

Is there another place we document the command line options?

@styfle

styfle commented Apr 2, 2018

Copy link
Copy Markdown
Member

@UziTech Not that I'm aware of but we probably should.

@styfle
styfle requested a review from joshbruce April 2, 2018 23:44
@joshbruce

Copy link
Copy Markdown
Member

Don't want to break anything by fixing the merge conflicts. Think we should add this to the next release.

@UziTech

UziTech commented Apr 5, 2018

Copy link
Copy Markdown
Member Author

I rebased

zhenalexfan pushed a commit to zhenalexfan/MarkdownHan that referenced this pull request Nov 8, 2021
allow string arg from command line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants