diff options
| author | Matt Mayer <[email protected]> | 2022-12-27 00:30:18 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-12-26 17:30:18 +0000 |
| commit | 3793ec1baffbf0d41b3f49fa94380ffd4048b054 (patch) | |
| tree | 4e3f044dfd88b9b8636f8670685c5896b1c2ed75 /docs | |
| parent | ec53c4507ad724704d792db633889f9eb66bea67 (diff) | |
| download | faker-3793ec1baffbf0d41b3f49fa94380ffd4048b054.tar.xz faker-3793ec1baffbf0d41b3f49fa94380ffd4048b054.zip | |
docs(datatype): allow markdown in @see links (#1667)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/.vitepress/components/api-docs/method.vue | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/docs/.vitepress/components/api-docs/method.vue b/docs/.vitepress/components/api-docs/method.vue index db98657a..c24565ee 100644 --- a/docs/.vitepress/components/api-docs/method.vue +++ b/docs/.vitepress/components/api-docs/method.vue @@ -39,10 +39,12 @@ function seeAlsoToUrl(see: string): string { <h3>See Also</h3> <ul> <li v-for="seeAlso of props.method.seeAlsos" :key="seeAlso"> - <a v-if="seeAlso.startsWith('faker.')" :href="seeAlsoToUrl(seeAlso)"> - {{ seeAlso }} - </a> - <template v-else>{{ seeAlso }}</template> + <a + v-if="seeAlso.startsWith('faker.')" + :href="seeAlsoToUrl(seeAlso)" + v-html="seeAlso" + /> + <template v-else v-html="seeAlso" /> </li> </ul> </div> |
