Skip to content
This repository was archived by the owner on Mar 22, 2022. It is now read-only.

Commit 3070d25

Browse files
committed
Implement GitHub's markdown perview
1 parent c56f41d commit 3070d25

File tree

4 files changed

+963
-2
lines changed

4 files changed

+963
-2
lines changed

src/components/Editor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
</button>
3030
</div>
3131
<textarea class="markdown" v-model="memos[selectedIndex].markdown"></textarea>
32-
<div class="preview" v-html="preview()"></div>
32+
<div class="preview markdown-body" v-html="preview()"></div>
3333
</div>
3434
</div>
3535
</template>

src/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import 'shitajicss/docs/css/shitaji.min'
1+
import 'shitajicss/docs/css/shitaji.min.css'
2+
import './scss/style.scss'
23
import Vue from 'vue'
34
import App from './App.vue'
45

0 commit comments

Comments
 (0)