auto_link

package
v0.0.0-...-0403682 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddIdForHtmlH

func AddIdForHtmlH(html string) string

HTMLの見出し要素にid属性を付与

func MakeBreadCrumbs

func MakeBreadCrumbs(baseUrl string, pagename string, allHeaderInfos MdAllHeaaderInfo, suffix string) [][2]string

該当マークダウンの配置位置より、パンくずリストを作成 階層に該当する画面が存在しない場合はリンクではないただの文字列として表示する

func MakeLink(baseUrl string, targetMdStr string, allHeaderInfos MdAllHeaaderInfo, suffix string) (string, string)

ページ名及び、独自記法から、マークダウンのリンクで置き換えたマークダウン文字列を返す リンクが見つからなかったものは二つ目の引数において内容をカンマ区切り文字列で返却

func MakePageInnerPaths

func MakePageInnerPaths(baseUrl string, pagename string, depth int, allHeaderInfos MdAllHeaaderInfo, suffix string) [][3]string

画面内のIDのリンクリストを取得 ページ内の目次等の生成用 depth - 検索するIDの#の数

Types

type MdAllHeaaderInfo

type MdAllHeaaderInfo struct {
	// contains filtered or unexported fields
}

func NewMdAllHeaaderInfo

func NewMdAllHeaaderInfo(mdPathes access_md.MdPaths) (MdAllHeaaderInfo, error)

受け取った前の見出しの情報を取得 返却されるmapのkeyは見出しとして表示される内容 複数ページで同じ見出しが使用されている場合、処理において後に出現したものが優先される ※ソースの段階では順序不定?

type MdHeaderInfo

type MdHeaderInfo struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL