Giter VIP home page Giter VIP logo

gatsby-remark-attr's People

Contributors

renovate-bot avatar shooontan avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

rivy

gatsby-remark-attr's Issues

Attribute for <p> / paragraph?

Hi,

I'm unsure if this is an issue of MDX or remark-attr.

I can't appear to use:

This is a paragraph.{.class-name}

I tried adding 'p' and 'paragraph' to the options.elemets as well.

Did you manage to use this on paragraph text?

Not working with gatsby-remark-images

Hello,
my problem is, that if I try to use gatsby-remark-attr on images, the instruction in the curly braces isn't parsed and is displayed as text under the image. (for example: "{width=100}")
On Hyperlinks it works very well, so this doesn't seem to be my own mistake.

I'm using the following plugins for markdown:

  • gatsby-transformer-remark
  • gatsby-remark-images
  • gatsby-remark-images-medium-zoom
  • gatsby-remark-code-buttons

Other plugins:

  • gatsby-plugin-typography
  • gatsby-source-filesystem
  • gatsby-plugin-material-ui
  • gatsby-plugin-react-helmet
  • gatsby-plugin-sharp
  • gatsby-plugin-ffmpeg
  • gatsby-plugin-manifest

Is there any way to solve my problem? Maybe your documentation is incomplete and I need an additional plugin?

remark-attr dependency (^0.6.2) incompatible with Node v6

When you have a chance, can you make the pull request to upgrade your dependent remark-attr package to use the latest version (^0.8.0)? I am stuck running an older version of node (v6.11) on a production machine and cannot upgrade for the foreseeable future, and when building the gatsby site am getting an error at line 177 of node_module/remark-attr/index.js (^0.6.2), specifically the use of unsupported spread operators in objects.

The newer version of remark-attr should fix this issue, as it appears to bypass the use of spread operators. I'm running node v8 on my local machine, and everything works great, but am unfortunately stuck with a lower version of node on the production machine.

gatsby-remark-images breaks attributes

Can this be made compatible with gatsby-remark-images? It converts markdown images ![img](/some.jpg) into spans of class gatsby-resp-image-wrapper which don't seem to inherit any specified attributes.

The best I could find so far is to wrap images in working elements:

_![img](/some.jpg)_{style="display: block; width: 300px; margin: auto;"}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.