Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-54773

Create core renderers for anchors and permalinks

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.2
    • Fix Version/s: None
    • Component/s: HTML and CSS
    • Labels:
      None
    • Affected Branches:
      MOODLE_32_STABLE

      Description

      There is a big diversity of how anchor links are rendered which causes bugs and make the css inconsistent, see MDL-54729 MDL-53050

      I'm proposing to make a new core renderer so all anchors are consistent, and with an option for the anchor to also render a permalink on hover so that it's easy to discover and deep link to the anchor.

      Here is a screen shot of how github renders the permalinks on markdown headings on hover:

      Some candidates for refactoring:

      1. course format anchors
      2. wiki table of contents anchors
      3. forum comment linking

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              brendanheywood Brendan Heywood
              Participants:
              Component watchers:
              Amy Groshek, David Scotson, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: