-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into minor-regex-enhancements
- Loading branch information
Showing
13 changed files
with
454 additions
and
411 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<template lang="pug"> | ||
.title(v-html="markdownText", v-if="markdownText != ''") | ||
</template> | ||
|
||
<script lang="ts"> | ||
import MarkdownIt from 'markdown-it'; | ||
import { defineComponent } from 'vue'; | ||
export default defineComponent({ | ||
data() { | ||
return { | ||
markdownText: '', | ||
}; | ||
}, | ||
beforeMount() { | ||
fetch('title.md').then((response) => { | ||
if (!response.ok) { // file not found | ||
return ''; | ||
} | ||
return response.text(); | ||
}).then((text) => { | ||
const md = new MarkdownIt({ html: true }); | ||
this.markdownText = md.render(text); | ||
}).catch((error) => { | ||
this.markdownText = (error as Error).toString(); | ||
}); | ||
}, | ||
}); | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.title { | ||
overflow-x: auto; | ||
padding: 0 1.5rem; | ||
// This is needed because the parent summary-wrapper center aligns everything | ||
text-align: initial; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.