Skip to content

Expose some utility functions for easier theme customization #873

Description

@Jym77

What package is the feature request related to?

typedoc-plugin-markdown

Background

So, I wanted to generate markdown documentation with no line number in source links (*). This is fairly easy thanks to the partials.source helper that I can overwrite in a custom theme. I merely copied member.source and remove the line number from the output.

However, that file uses markdown/link and utils/escape-chars which, as far as I can tell, are not exported by the package. So I had to copy them too (fortunately, that stops here). Of course, this gets a bit annoying and unstable…

=> So, would it make sense to export the libs content (likely with its own entry point, e.g. typescript-plugin-markdown/libs) to ease the writing of plugins?

(*) Reason: trying to get as stable output as possible to use them for API review in PR, which helps verifying the associated semver bumps. Line numbers can changes for irrelevant reasons.

Proposed solution

No response

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions