Skip to content

Underscore(s) in URLs for YouTube may disappear #3

Description

@PeterMortensen

Web, transformation for YouTube (function "Transform for YouTube comments"):

If there is one or more underscores in a URL for YouTube and the content is subsequently styled with italics (in YouTube comments, that is by enclosing in a pair of underscore characters (_)), one or more underscores in the URL (every second one?) may be hidden from view.

This is not a problem with this function as such (more how styling works in YouTube comments), but it can cause unexpected behaviour. Currently the user needs to be aware of it.

There are often underscores in both YouTube and Wikipedia URLs. Examples:

Is it possible to escape underscores? For example, will a double underscore work?

Proposed changes:

  1. URLs should always be formatted for italics in the output (as that is how they are usually used).
  2. Unless the URL contains one or more underscores. Then use bold instead (enclosing in a pair of asteriskes (*))
  3. If it is possible to escape underscores, then do that instead of 2.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions