NextJS: 05-09 Remark TOC (Table of Content)

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 พ.ย. 2024

ความคิดเห็น •

  • @sinhbuiinh2248
    @sinhbuiinh2248 2 ปีที่แล้ว

    00:06 Purpose of remark TOC(Table of content)
    00:45 Explain remark TOC working process
    01:40 Intall remark-toc and add heading in md file
    04:50 Some regular expression with heading
    05:35 Link heading with content by add id by rehype-slug
    07:25 Allow get link when click on heading by rehype-autolink-heading
    09:20 Explain rehype-autolink-heading how to work and reason why icon not display & some custom

  • @sangtran106
    @sangtran106 ปีที่แล้ว

    Nếu mình muốn đưa phần TOC nó nằm ở side bên phải hoặc trái để tiện click thay vì phải scroll lên thì phải làm sao vậy ạ

    • @EasyFrontend
      @EasyFrontend  ปีที่แล้ว

      hi Sang, hình như ông thần remark này chưa có support, em phải làm manually hoặc tìm package khác hỗ trợ parse md và có support toc scroll spy em nhen

  • @haquoctuan
    @haquoctuan 2 ปีที่แล้ว

    Em muốn get riêng thằng TOC thành 1 cục html riêng, hoặc là css riêng cho thằng TOC này thì nên làm thế nào a

    • @EasyFrontend
      @EasyFrontend  2 ปีที่แล้ว

      hi Tuấn, em thử inspect file html kết quả, rồi add css ở file component thử nha 😉