GithubHelp home page GithubHelp logo

Comments (11)

dcaryll avatar dcaryll commented on May 26, 2024 1

Good idea @castastrophe. I added that to a few already on the typography page. Would it be useful for all headings?

from red-hat-design-system.

castastrophe avatar castastrophe commented on May 26, 2024

Yes please! I would love that. I'm often trying to describe a concept and want to link directly to the topic in documentation.

from red-hat-design-system.

dcaryll avatar dcaryll commented on May 26, 2024

This has been added! It works great for one word headings, but unfortunately is adding %20 between two words. For example, "Component status" becomes ux.redhat.com/accordion#Component%20status. @castastrophe @wesruv not sure if there's a way to fix that, but at least you can link to it directly!

from red-hat-design-system.

castastrophe avatar castastrophe commented on May 26, 2024

from red-hat-design-system.

wesruv avatar wesruv commented on May 26, 2024

We might be able to get a plug-in that adds these anchors for us, or just write one... I can take a look

from red-hat-design-system.

markcaron avatar markcaron commented on May 26, 2024

Going to implement this along with the new docs IA work.

from red-hat-design-system.

bennypowers avatar bennypowers commented on May 26, 2024

we can add this easily enough with a plugin, then iterate on the design towards IA impl.

from red-hat-design-system.

coreyvickery avatar coreyvickery commented on May 26, 2024

@marionnegp Is this a different ask than #422?

from red-hat-design-system.

marionnegp avatar marionnegp commented on May 26, 2024

Not necessarily. I guess this one talks about adding anchor links, while #422 talks about adding the clipboard copy button that makes the anchor links easier to use, but I think these can be combined.

from red-hat-design-system.

markcaron avatar markcaron commented on May 26, 2024

These anchor links will use clipboard copy, so we're going to close #422 as a duplicate.

from red-hat-design-system.

bennypowers avatar bennypowers commented on May 26, 2024

There are accessibility concerns here. Cc @nikkimk @hellogreg
See https://www.npmjs.com/package/markdown-it-anchor#permalinks for some options

from red-hat-design-system.

Related Issues (20)

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.