Skip to content

Instead of < and > &lt; and &gt; are shown #645

Closed

Description

@anshbansal

On the getting started page the html encoded values are shown instead of < & >

http://git-scm.com/book/en/v2/Getting-Started-Getting-Help

Activity

  1. anshbansal commented on Jan 2, 2016

    @anshbansal
    Author
  2. randomecho commented on Jan 2, 2016

    @randomecho
    Contributor

    Related: #618 #626 #606 #637

  3. MysticOdin commented on Jan 21, 2016

    @MysticOdin

    Same on https://git-scm.com/book/en/v2/Git-Basics-Tagging#Sharing-Tags

    even though in the book (link below) it is displayed correctly

    https://github.com/progit/progit/blob/master/en/02-git-basics/01-chapter2.markdown

    I think markdown conversion of code styled markdown is converting < and > to their HTML escaped version when it doesn't have to

  4. jasonkeene commented on Feb 21, 2016

    @jasonkeene
  5. Peter-Liang commented on Feb 29, 2016

    @Peter-Liang

    Since the issue still exist, my workaround is to format every page with my script.
    $('pre').each((i,e)=>{ e.innerText = e.innerText.replace(/&lt;/g,'<').replace(/&gt;/g,'>'); });

  6. peff commented on May 3, 2016

    @peff
    Member

    There are a ton of duplicate issues on this topic, which I'm closing to keep the discussion in one place. I'm pointing them all at #753, so I'm going to do the same here. There's some nice discussion, though, so I've put a pointer back from that issue to here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions