We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ex d'utiliation dans la doc :
<doc-markdown-viewer url="https://github.com/assurance-maladie-digital/design-system/blob/v2-bridge/packages/synapse-bridge/CHANGELOG.md"></doc-markdown-viewer>
src/components/global/DocMarkdownViewer.vue
Base de code :
<template> <div> <div v-html="renderedMarkdown"></div> </div> </template> <script lang="ts"> import Vue from 'vue'; import Component from 'vue-class-component'; @Component export default class MarkdownViewer extends Vue { renderedMarkdown: string = ''; mounted() { this.fetchAndRenderMarkdown(); } async fetchAndRenderMarkdown() { try { const response = await fetch('https://github.com/assurance-maladie-digital/design-system/blob/v2-bridge/packages/synapse-bridge/CHANGELOG.md', { headers: { 'Access-Control-Allow-Origin': '*' } }); const markdownContent = await response.text(); this.renderedMarkdown = this.markdownToHtml(markdownContent); } catch (error) { console.error('Error fetching Markdown file:', error); } } markdownToHtml(markdown: string): string { // TODO : convert to html return markdown; } } </script>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Ex d'utiliation dans la doc :
src/components/global/DocMarkdownViewer.vue
Base de code :
The text was updated successfully, but these errors were encountered: