Skip to content

Placeholder texts in code examples of angular.io markdown content do not display in the browser #33612

Closed

Description

@akaustav

📚 Docs or angular.io bug report

Description

Placeholder texts (enclosed inside angle brackets - like <app-name>) inside <code-example></code-example> tags on the markdown content for angular.io do not display on browsers. Instead they are treated as opening html tags without matching closing tags.

🔬 Minimal Reproduction

What's the affected URL?

Reproduction Steps

  1. Open the above affected URL(s) in any browser of your choice.
  2. Scroll down till the paragraph which contains information about replacing <app-name> in the provided configuration. There are two instances:

    You can then run the ng serve command with this configuration. Make sure to replace <app-name> (in "<app-name>:build:es5") with the actual name of the app, as it appears under projects in angular.json. For example, if your app name is myAngularApp the config will become "browserTarget": "myAngularApp:build:es5".

    You can then run the ng e2e command with this configuration. Make sure to replace <app-name> (in "<app-name>:serve:es5") with the actual name of the app, as it appears under projects in angular.json. For example, if your app name is myAngularApp the config will become "devServerTarget": "myAngularApp:serve:es5".

  3. Check the provided configuration above this paragraph for instances of <app-name>.

Expected Behavior

I was hoping to find <app-name> somewhere in the provided configuration.

Actual Behavior

I can NOT find any instances of <app-name> in the provided configuration.

📷Screenshot

Here is the screenshot for Configuring serve for ES5 section:

image

And here is the screenshot for Configuring the e2e command section:

image

🌍 Your Environment

Browser info

This issue does NOT seem to be browser specific - it is reproducible in all of the following browsers which I have access to:

  • Device: Laptop
  • Operating System: Microsoft Windows 10 (version 1909)
  • Browsers:
    • Google Chrome 78.0.3904.87 (Official Build) (64-bit)
    • Microsoft Edge 44.18362.449.0 (with EdgeHTML 18.18363)
    • Mozilla Firefox 71.0b7 (64-bit)

Anything else relevant?

Tracing back the commit logs and older issues, I believe this problem was introduced in commit 9bbe67f which is part of PR #32210 meant for fixing documentation issue #32199.

Activity

  1. changed the title [-]Placeholder texts in code examples of angular.io markdown content does not display in the browser[/-] [+]Placeholder texts in code examples of angular.io markdown content do not display in the browser[/+] on Nov 6, 2019
  2. added this to the needsTriage milestone on Nov 6, 2019
  3. santoshyadavdev commented on Nov 6, 2019

    @santoshyadavdev
    Contributor

    Hi @akaustav ,
    Let me take a look.

  4. santoshyadavdev commented on Nov 6, 2019

    @santoshyadavdev
    Contributor

    I have made one small change looks like it is ignoring <> brackets, will update once a preview is available,

  5. modified the milestones: needsTriage, Backlog on Nov 6, 2019
  6. added
    state: community
    on Nov 6, 2019
  7. added a commit that references this issue on Nov 7, 2019
    9df1178
  8. angular-automatic-lock-bot commented on Dec 8, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  9. locked and limited conversation to collaborators on Dec 8, 2019
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

    freq1: lowstate: communitystate: has PRtype: bug/fix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions