Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feature: make gq respect link descriptions #1470

Open
@gfaster

Description

Currently, If there are links with long urls but short descriptions, gq formats them according to their expanded text. It would most likely be desirable for it to be formatted according to the link's description.

For example, if I use gqq over this text:

%% expanded
According to [[https://www.epa.gov/greenvehicles/greenhouse-gas-emissions-typical-passenger-vehicle|EPA]] ([[https://web.archive.org/web/20250101062016/https://www.epa.gov/greenvehicles/greenhouse-gas-emissions-typical-passenger-vehicle|Archive]]), the average passenger vehicle emits 4.6 metric tons of CO2 per year, which is quite a bit.
%% displayed
According to EPA (Archive), the average passenger vehicle emits 4.6 metric tons of CO2 per year, which is quite a bit.

It is formatted into:

%% displayed
According to
EPA
(Archive),
the average passenger vehicle emits 4.6 metric tons of CO2 per year, which is
quite a bit.

But it would be desirable for it to be formatted as:

%% displayed
According to EPA (Archive), the average passenger vehicle emits 4.6 metric tons
of CO2 per year, which is quite a bit.

The same behavior applies to raw urls that are shortened automatically

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

        AltStyle によって変換されたページ (->オリジナル) /