Renders placeholder notes markdown as rendered HTML
Previously we would just show the raw markdown in placeholder notes which could result in a jarring effect when the new rendered note comes in. This changes that by using the `marked` markdown library.
显示
- app/assets/javascripts/lib/utils/text_utility.js 58 个添加, 0 个删除app/assets/javascripts/lib/utils/text_utility.js
- app/assets/javascripts/notebook/cells/markdown.vue 2 个添加, 58 个删除app/assets/javascripts/notebook/cells/markdown.vue
- app/assets/javascripts/notes/components/noteable_note.vue 2 个添加, 1 个删除app/assets/javascripts/notes/components/noteable_note.vue
- app/assets/javascripts/notes/stores/actions.js 16 个添加, 20 个删除app/assets/javascripts/notes/stores/actions.js
- app/assets/javascripts/notes/stores/getters.js 1 个添加, 1 个删除app/assets/javascripts/notes/stores/getters.js
- app/assets/javascripts/notes/utils.js 7 个添加, 0 个删除app/assets/javascripts/notes/utils.js
- app/assets/javascripts/vue_shared/components/notes/placeholder_note.vue 7 个添加, 3 个删除...ascripts/vue_shared/components/notes/placeholder_note.vue
- spec/features/merge_request/batch_comments_spec.rb 2 个添加, 0 个删除spec/features/merge_request/batch_comments_spec.rb
- spec/frontend/notes/components/noteable_note_spec.js 4 个添加, 3 个删除spec/frontend/notes/components/noteable_note_spec.js
- spec/frontend/vue_shared/components/notes/__snapshots__/placeholder_note_spec.js.snap 2 个添加, 0 个删除...ponents/notes/__snapshots__/placeholder_note_spec.js.snap
加载中
想要评论请 注册 或 登录