nuxt-highlight.js

 

https://github.com/Llang8/nuxt-highlightjs

 

GitHub - Llang8/nuxt-highlightjs: Highlight.js syntax highlighting for Nuxt.js

Highlight.js syntax highlighting for Nuxt.js. Contribute to Llang8/nuxt-highlightjs development by creating an account on GitHub.

github.com

pre태그와 code 태그를 사용하여 각 프로그래밍 언어를 하이라이트해주는 모듈이다. 

 

 

vue-dompurify-html

 

https://github.com/LeSuisse/vue-dompurify-html

 

GitHub - LeSuisse/vue-dompurify-html: Safe replacement for the v-html directive

Safe replacement for the v-html directive. Contribute to LeSuisse/vue-dompurify-html development by creating an account on GitHub.

github.com

Editor로 작성된 데이터는 v-html을 통해 파싱해서 보여줘야한다. 다만 v-html은 xss공격에 취약해서 eslint 경고가 뜬다. 그럴경우 위 모듈을 사용해서 작성하면 된다.

 

 

moment-module

 

https://github.com/nuxt-community/moment-module

 

GitHub - nuxt-community/moment-module: Efficient Moment.js integration for Nuxt

Efficient Moment.js integration for Nuxt. Contribute to nuxt-community/moment-module development by creating an account on GitHub.

github.com

new Date() 시간 객체를 지역 설정에 맞게 표시해준다. 

 

 

 

'Front-End > Vue & Nuxt' 카테고리의 다른 글

Eslint Babel정리  (0) 2022.02.27
Nuxt.js Buefy Pagination  (0) 2022.02.26
Nuxt.js SCSS 사용  (0) 2022.02.26
Nuxt.js Transition  (0) 2022.02.26
Nuxt 라이브러리 적용  (0) 2022.02.15

+ Recent posts