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

Properly load options for Remark #1441

Merged
merged 1 commit into from
Jul 9, 2017
Merged

Conversation

benmccormick
Copy link
Contributor

Fixes #1434

Remark now loads options with a data method instead of directly in the constructor.
This change isn't really well documented right now, but you can see the details in this issue.

@gatsbybot
Copy link
Collaborator

gatsbybot commented Jul 9, 2017

Deploy preview ready!

Built with commit 6fb6977

https://deploy-preview-1441--using-drupal.netlify.com

@gatsbybot
Copy link
Collaborator

gatsbybot commented Jul 9, 2017

Deploy preview ready!

Built with commit 6fb6977

https://deploy-preview-1441--gatsbyjs.netlify.com

@gatsbybot
Copy link
Collaborator

gatsbybot commented Jul 9, 2017

Deploy preview ready!

Built with commit 6fb6977

https://deploy-preview-1441--gatsbygram.netlify.com

@fk
Copy link
Contributor

fk commented Jul 9, 2017

@benmccormick Yay! 💪
Would you mind updating examples/using-remark with a quick example?

@benmccormick
Copy link
Contributor Author

@fk I added an example. My editor killed some trailing spaces so the diff is a bit messy though. Do we care about cleaning that up, or is it good as is?

@gatsbybot
Copy link
Collaborator

gatsbybot commented Jul 9, 2017 via email

@fk
Copy link
Contributor

fk commented Jul 9, 2017

@benmccormick 👍 Thank you! Let me take a look! (@KyleAMathews is the authority here, just chimed in because I didn't want to forget adding the example :D)

@fk
Copy link
Contributor

fk commented Jul 9, 2017

@benmccormick @KyleAMathews And there he is, the infamous KyleBot :) ;)

@@ -11,14 +11,14 @@ tags:
![](joshua-earle-234740.jpg)
*Photo by [Joshua Earle](https://unsplash.com/@joshuaearle) via [Unsplash](https://unsplash.com/@joshuaearle?photo=-87JyMb9ZfU)*

**_Note how all headlines below show an anchor link when you hover them?_**
Copy link
Contributor

@fk fk Jul 9, 2017

Choose a reason for hiding this comment

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

Those two spaces at the end of a line actually do a <br>, so it'd be nice if you could turn off "trim end of line whitespace" in your editor real quick :/.

Quoting from the Markdown doc:

When you do want to insert a <br /> break tag using Markdown, you end a line with two or more spaces, then type return.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Huh, I've been writing Markdown for years and never knew that. sigh, will fix.

Copy link
Contributor

@fk fk Jul 9, 2017

Choose a reason for hiding this comment

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

;) Sorry :( … Looking at using-remark, I think I tend to overuse that feature by now –
maybe to make up for all the times that my editor settings ate them up when editing other peoples docs? :)

FWIW, I started using Atom last year and its whitespace package takes care of that issue nicely.

@@ -133,8 +133,8 @@ In this example, leading and trailing spaces are shown with with dots: ⋅

You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).

To have a line break without a paragraph, you will need to use two trailing spaces.
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, there even is an example for the two space stuff – totally forgot abt that already :)

[Blockquotes](#blockquotes)
[Inline HTML](#html)
[Horizontal Rule](#hr)
[Line Breaks](#lines)
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you link to the new "Footnotes" section here?

Fixes gatsbyjs#1434

Remark now loads options with a `data` method instead of directly in the constructor.
@KyleAMathews
Copy link
Contributor

@benmccormick
Copy link
Contributor Author

@fk @KyleAMathews comments should be addressed. I'm not sure what is going on with the failing deploys though, I can't see any of the netlify logs.

@KyleAMathews
Copy link
Contributor

The netlify error was a random yarn install failure so 🤷‍♂️

But using-remark built correctly and we have footnotes! https://deploy-preview-1441--using-remark.netlify.com/hello-world-kitchen-sink/#fnref-1

@KyleAMathews
Copy link
Contributor

thanks for researching the fix and adding the PR!

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.

4 participants