Skip to content

Commit

Permalink
apply to l screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry-cheong committed Nov 29, 2024
1 parent 453fb99 commit 8a56bbc
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/pages/publications/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,14 @@
<v-row v-for="(article, index) in featured">
<v-col>
<v-card variant="flat" class="l-featured-card">
<p class="text-wrap text-h4 font-weight-medium">
{{ article.title }}
</p>
<p class="text-wrap text-subtitle-1 my-5">
{{ article.abstract }}
</p>
<p
class="text-wrap text-h4 font-weight-medium"
v-html="parseMarked(article.title)"
></p>
<p
class="text-wrap text-subtitle-1 my-5"
v-html="parseMarked(article.abstract)"
></p>
<v-btn
variant="elevated"
color="black"
Expand Down Expand Up @@ -138,9 +140,9 @@ export default {
},
methods: {
parseMarked(HTML) {
parseMarked(content) {
const marked = window["marked"];
const results = marked.parse(HTML);
const results = marked.parse(content);
return results;
},
Expand Down

0 comments on commit 8a56bbc

Please sign in to comment.