Skip to content

Is it possible to use markup in frontmatter or config texts (themeConfig) in VuePress? #2142

Open
@ptandler

Description

@ptandler

Feature request

I did ask this question on StackOverflow a while ago and didn't get any reply.

So I guess that this is rather a feature request and not a question - right? ;-)

What problem does this feature solve?

The text for e.g. the language dropdown or serviceWorker.updatePopup is defined in the config.js. And there might be frontmatter values also defining text.

Currently; I'm not aware of any possibility to use markup (bold / italic / images) there.

What does the proposed API look like?

Be able to use markup in all places where texts are defined - in the same way as it is used normally.

How should this be implemented in your opinion?

Pipe text defined in config.js, frontmatter and other places through the normal markup processing.

With respect to the frontmatter it must be possible to define, which values might contain markup.

Are you willing to work on this yourself?

Well, yes, if I get some help to understand the software design and find the right places for the changes. I didn't look into the implementation of VuePress yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions