Skip to content

search friendly html document by removing <span>s #104

@arbipher

Description

@arbipher

It may be the case for non-expert users to search for a type to check whether some standard function exist,
e.g. I searched 'a -> 'a -> 'a in the List module to check how many variants of List.reduce and pick one.

However, the current generated HTML doesn't support a naive search of type string like 'a -> 'a -> 'a. The reason is there are some <span> in it to prevent web browser in page search to find it easilly.

<span>(<span class="type-var">'a</span> <span>-&gt;</span> <span class="type-var">'a</span> <span>-&gt;</span> <span class="type-var">'a</span>)</span>

I can search 'a -> 'a -> 'a in the source code.

I suggest removing some spans in the output to make it friendly to naive in-page search.

Metadata

Metadata

Assignees

No one assigned

    Labels

    forwarded-to-js-devsThis report has been forwarded to Jane Street's internal review system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions