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

Display filename in codeblock (resend) #1533

Merged
merged 4 commits into from
Feb 22, 2018
Merged

Display filename in codeblock (resend) #1533

merged 4 commits into from
Feb 22, 2018

Conversation

forestail
Copy link
Contributor

! Please reject my former pull request !

I've added a feature displaying file name in code block.
Additionally, I made it possible to define any first line number.
The notation is as follows.

```[Language]:[File Name]:[First line number]

```

Example:

```html:something.html:10
<body></body>
```

If you don't write file name and line number, it behaves originally.

2018-02-10_04h34_44

@kazup01 kazup01 added the awaiting review ❇️ Pull request is awaiting a review. label Feb 11, 2018
Copy link
Member

@sosukesuzuki sosukesuzuki left a comment

Choose a reason for hiding this comment

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

Thanks you for your contribution.
please confirm my reviews!

@@ -25,14 +26,21 @@ var md = markdownit({
xhtmlOut: true,
breaks: true,
highlight: function (str, lang) {
let delimiter = ":";
let langinfo = lang.split(delimiter);
let lang = langinfo[0];
Copy link
Member

Choose a reason for hiding this comment

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

duplicate declaration lang

@@ -25,14 +26,21 @@ var md = markdownit({
xhtmlOut: true,
breaks: true,
highlight: function (str, lang) {
let delimiter = ":";
Copy link
Member

Choose a reason for hiding this comment

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

Please follow eslintrc

@kazup01 kazup01 added awaiting changes 🖊️ Pull request has been reviewed, but contributor needs to make changes. and removed awaiting review ❇️ Pull request is awaiting a review. labels Feb 19, 2018
@forestail
Copy link
Contributor Author

Sorry. I've followed eslintrc.
Please check it on.

@Rokt33r Rokt33r self-requested a review February 22, 2018 00:57
Copy link
Member

@Rokt33r Rokt33r left a comment

Choose a reason for hiding this comment

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

👍

@Rokt33r Rokt33r added next release (v0.9.1) and removed awaiting changes 🖊️ Pull request has been reviewed, but contributor needs to make changes. labels Feb 22, 2018
@Rokt33r Rokt33r merged commit 7d7e277 into BoostIO:master Feb 22, 2018
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

Successfully merging this pull request may close these issues.

None yet

4 participants