Skip to content

Commit 7633f72

Browse files
committed
Replace markdown-it with MyST
1 parent d5c0dfd commit 7633f72

File tree

4 files changed

+1553
-1303
lines changed

4 files changed

+1553
-1303
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"graphql": "16.10.0",
3939
"graphql-tag": "2.12.6",
4040
"lodash-es": "4.17.21",
41-
"markdown-it": "14.1.0",
4241
"mitt": "3.0.1",
42+
"mystjs": "^0.0.15",
4343
"nprogress": "1.0.0-1",
4444
"preact": "10.26.5",
4545
"simple-icons": "2.19.0",

src/components/Markdown.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
</template>
2525

2626
<script>
27-
import MarkdownIt from 'markdown-it'
27+
import { MyST } from 'mystjs'
2828
29-
const md = new MarkdownIt()
29+
const md = new MyST()
3030
3131
export default {
3232
name: 'Markdown',

src/components/cylc/Info.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
5858
<dd>{{ taskMetadata.title }}</dd>
5959
<v-divider />
6060
<dt>Description</dt>
61-
<dd><span class="markup">{{ taskMetadata.description }}</span></dd>
61+
<dd><Markdown :markdown="taskMetadata.description"/></dd>
6262
<v-divider />
6363
<dt>URL</dt>
6464
<dd>
@@ -168,12 +168,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
168168
<script>
169169
import { useJobTheme } from '@/composables/localStorage'
170170
import GraphNode from '@/components/cylc/GraphNode.vue'
171+
import Markdown from '@/components/Markdown.vue'
171172
import { formatCompletion } from '@/utils/outputs'
172173
173174
export default {
174175
name: 'InfoComponent',
175176
176177
components: {
178+
Markdown,
177179
GraphNode,
178180
},
179181

0 commit comments

Comments
 (0)