You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add options config for @vuepress/plugin-last-updated
What problem does this feature solve?
In @vuepress/plugin-last-updated, toLocaleString is the default transformer. toLocaleString has some options, so sometimes we don't need use custom transformer here.
Example: We just need pass { hour12: false } to get 24-hour.
What does the proposed API look like?
module.exports={plugins: [['@vuepress/last-updated',{options: {// more options// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleStringhour12: false}}]]}
Feature request
add options config for @vuepress/plugin-last-updated
What problem does this feature solve?
In @vuepress/plugin-last-updated, toLocaleString is the default transformer.
toLocaleString
has some options, so sometimes we don't need use custom transformer here.Example: We just need pass
{ hour12: false }
to get 24-hour.What does the proposed API look like?
How should this be implemented in your opinion?
Add
options
param for defaultTransformer.Are you willing to work on this yourself?
Yes.
The text was updated successfully, but these errors were encountered: