about summary refs log tree commit diff
path: root/components/Ranking/RankingRules.vue
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-11-28 12:36:31 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-11-28 12:36:31 +0100
commite1dd9adf16592e1a66c5d1e255b1085ab944ec58 (patch)
tree87274441e6260e49cab7acf5ec0b1dce7c2a9ee2 /components/Ranking/RankingRules.vue
parent836922c666d6f2882e1ba856c3734159eee71bf3 (diff)
downloadpuszcza-e1dd9adf16592e1a66c5d1e255b1085ab944ec58.tar.gz
puszcza-e1dd9adf16592e1a66c5d1e255b1085ab944ec58.zip
Fix markdown parsing
Diffstat (limited to 'components/Ranking/RankingRules.vue')
-rw-r--r--components/Ranking/RankingRules.vue5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/Ranking/RankingRules.vue b/components/Ranking/RankingRules.vue
index b6c57ef..5ae3c74 100644
--- a/components/Ranking/RankingRules.vue
+++ b/components/Ranking/RankingRules.vue
@@ -8,11 +8,13 @@
 <script>
 import rules from '~/assets/zasady-punktacji.md'
 
+const md = require('markdown-it')()
+
 export default {
   name: 'RankingRules',
   data() {
     return {
-      rules
+      rules: md.render(rules)
     }
   }
 }
@@ -26,6 +28,7 @@ export default {
 
 .rules th,
 .rules td {
+  padding: 5px 15px;
   border: 1px solid #000;
 }
 </style>