GithubHelp home page GithubHelp logo

Comments (4)

arobase-che avatar arobase-che commented on June 11, 2024

Ok I spent some time to reproduce this case.
I'm happy that most of the plugin works. :)

I'm on vacation at the moment, I will investigate this bug next week. ^^

from remark-attr.

jaguarondi avatar jaguarondi commented on June 11, 2024

Checking a bit further, I could get to the point where the token is called and the returned 'eaten' data seems correct:

{
  type: 'image',
  title: null,
  url: '/img/Logo_Cyan_flat.png',
  alt: 'alt',
  position: Position {
    start: { line: 5, column: 1, offset: 32 },
    end: { line: 5, column: 45, offset: 76 },
    indent: []
  },
  data: { hProperties: { height: '50' } }
}

This is with a default docusaurus install and just this last line added to docusaurus.config.js:

  presets: [
    [
      '@docusaurus/preset-classic',
      {
        docs: {
          sidebarPath: require.resolve('./sidebars.js'),
          // Please change this to your repo.
          editUrl:
            'https://github.com/facebook/docusaurus/edit/master/website/',
          remarkPlugins: [require('remark-attr')],

from remark-attr.

arobase-che avatar arobase-che commented on June 11, 2024

Ok, it's exactly what I tried.

If you manage to get the 'eaten' data and that seems correct then the problem doesn't come from remark-attr.
Need more investigation.

Thank you for you implication.

from remark-attr.

jaguarondi avatar jaguarondi commented on June 11, 2024

That's good to know, thanks. I could try to reach out at Docusaurus to investigate further but it's outside my skills at the moment. If you have anything that could help point in the right direction, that could help.

I integrated Tailwind CSS with Docusarus and remark-attr would be great to stick to markdown as much as possible while still having much more functionalities by tagging lists or paragraphs to have various meanings like figure or table caption, check mark lists, tutorial step lists, etc. I would like to look into lists after but I'm afraid that if tags don't get through, more problems might appear.

from remark-attr.

Related Issues (18)

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.