return {
  {
    "iamcco/markdown-preview.nvim",
    cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
    ft = { "markdown" },
    build = function()
      vim.fn["mkdp#util#install"]()
    end,
    config = function()
      -- Set to 1 to open preview in browser automatically when entering markdown buffer
      vim.g.mkdp_auto_start = 0

      -- Set to 1 to auto close preview when switching away from markdown buffer
      vim.g.mkdp_auto_close = 1

      -- Set to 1 to refresh on save only, 0 to refresh on every change
      vim.g.mkdp_refresh_slow = 0

      -- Specify browser to open preview page
      -- Can be 'firefox', 'chrome', etc. or leave empty for default
      vim.g.mkdp_browser = ""

      -- Set to 1 to echo preview page URL in command line
      vim.g.mkdp_echo_preview_url = 0

      -- Options for markdown rendering
      -- mkit: markdown-it options for rendering
      -- katex: KaTeX options for math typesetting
      -- uml: markdown-it-plantuml options
      vim.g.mkdp_preview_options = {
        mkit = {},
        katex = {},
        uml = {},
        maid = {},
        disable_sync_scroll = 0,
        sync_scroll_type = "middle",
        hide_yaml_meta = 1,
        sequence_diagrams = {},
        flowchart_diagrams = {},
        content_editable = false,
        disable_filename = 0,
        toc = {},
      }

      -- Use custom markdown style (absolute path or URL)
      vim.g.mkdp_markdown_css = ""

      -- Use custom highlight style (absolute path or URL)
      vim.g.mkdp_highlight_css = ""

      -- Custom port for preview server (empty = auto select)
      vim.g.mkdp_port = ""

      -- Theme: 'dark' or 'light'
      vim.g.mkdp_theme = "dark"

      -- Combine preview window (set to 1 to combine multiple markdown preview windows)
      vim.g.mkdp_combine_preview = 0

      -- Auto-start preview when entering markdown buffer
      vim.g.mkdp_auto_start = 0
    end,
    keys = {
      {
        "<leader>mp",
        "<cmd>MarkdownPreviewToggle<cr>",
        desc = "Markdown Preview Toggle",
        ft = "markdown",
      },
      {
        "<leader>ms",
        "<cmd>MarkdownPreview<cr>",
        desc = "Markdown Preview Start",
        ft = "markdown",
      },
      {
        "<leader>mS",
        "<cmd>MarkdownPreviewStop<cr>",
        desc = "Markdown Preview Stop",
        ft = "markdown",
      },
    },
  },
}
