Skip to content

Add parse-backticks feature - #1872

Merged
fregante merged 5 commits into
masterfrom
parse-backticks
Mar 27, 2019
Merged

fregante merged 5 commits into
masterfrom
parse-backticks

Conversation

@fregante

@fregante fregante commented Mar 22, 2019 •

Copy link
Copy Markdown
Member

This feature will convert `code` into code where applicable. Currently it only looks for it in issue titles, but it can be expanded (hence the very generic name)

The style is TBD.

  • Should the backticks stay?
  • Should the text size be increased?
  • Should the background be turned gray?

Edit: no, yes, yes; see next comment

Test

https://github.com/sindresorhus/np/issues

Before

before

After

Edit: discarded, see next comment after

@fregante

fregante commented Mar 22, 2019 •

Copy link
Copy Markdown
Member Author

Here's what happens when I add .markdown-body to the title (and drop its line-height)

Screenshot 2019-03-22 at 15 26 09

@jerone

jerone commented Mar 25, 2019

Copy link
Copy Markdown
Contributor

Should the backticks stay?

What about visually hiding it, but keeping it for copying?

@fregante

Copy link
Copy Markdown
Member Author

What about visually hiding it, but keeping it for copying?

Possible, but what do you need to copy issue titles for?

@jerone

jerone commented Mar 25, 2019

Copy link
Copy Markdown
Contributor

@bfred-it commented on Mar 25, 2019, 5:01 PM GMT+1:

What about visually hiding it, but keeping it for copying?

Possible, but what do you need to copy issue titles for?

No particular reason, just a suggestion.

@sindresorhus

Copy link
Copy Markdown
Member

What about visually hiding it, but keeping it for copying?

I too think this would be nice if it's not hard. Before a large release, I like to create a v2 issue with an overview of what work is left and important issues, so then I would copy-paste the issue titles.

Comment thread source/features/parse-backticks.tsx Resolved
@sindresorhus

Copy link
Copy Markdown
Member

@sindresorhus sindresorhus 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.

Looks good when it's added to the readme.

Comment thread readme.md Resolved
@fregante
fregante merged commit 5ad0bf8 into master Mar 27, 2019
@fregante
fregante deleted the parse-backticks branch March 27, 2019 10:48
@fregante fregante mentioned this pull request Mar 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants