Code Monkey home page Code Monkey logo

Comments (5)

terrylinooo avatar terrylinooo commented on September 14, 2024

意思是小工具放在文章側邊欄?

from githuber-md.

wyrover avatar wyrover commented on September 14, 2024

是 markdown 的 一级 二级 三级 标题 放在右侧当导航

title1

title 2

titlte3

from githuber-md.

terrylinooo avatar terrylinooo commented on September 14, 2024

Ok。 我會把它做成一個小工具 (widget) 讓用戶自行決定要出現的地方。

from githuber-md.

terrylinooo avatar terrylinooo commented on September 14, 2024

預計在 1.9.0 版加入。

from githuber-md.

terrylinooo avatar terrylinooo commented on September 14, 2024

已完成。有提示更新 1.9.0 版,更新後即可使用。

image

要在模組打開。

假如對我設計的 TOC 的樣式,有修改的需求,

md-widget-toc 是在小工具區域
md-post-toc 是在文章區域

再自行在 theme 自定義 CSS 加入喜歡的樣式。

以下是範本。

.md-widget-toc, .md-post-toc {
	ul, ol {
		padding-left: 15px;
		margin: 0;

		ul, ol {
			padding-left: 2em;
		}
	}

	ul {
	
		ol {
			list-style-type: lower-roman;
		}
		ul ol, ol ol {
			list-style-type: lower-alpha;
		}
	}
	ol {
		ul, ol {
			padding-left: 2em;
		}

		ol {
			list-style-type: lower-roman;
		}

		ul ol, ol ol {
			list-style-type: lower-alpha;
		}
	}
}

from githuber-md.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.