Pi66

Home | Repos | About | Blog | Gaza

merodi
A markdown-based static site generator.
git clone https://git.pi66.xyz/merodi

About | Files | Commits | Refs | License


bug: fix nil state.Markdown pointer

Author: pi66
Date: 2026-10-05 00:36
commit: b58166b6

Stat

A src/core/build/compile/markdown/markdown.go 1 +1 -0

Diff

diff --git a/src/core/build/compile/markdown/markdown.go b/src/core/build/compile/markdown/markdown.go
index 3275bdf..5f16d48 100644
--- a/src/core/build/compile/markdown/markdown.go
+++ b/src/core/build/compile/markdown/markdown.go
@@ -20,6 +20,7 @@ type Markdown struct {
 }
 
 func (self *Markdown) Init(state *state.State) {
+	self.Markdown = &state.Markdown
 	self.Extensions = state.Markdown.Extensions
 	self.ParsersOption = state.Markdown.ParsersOption
 }

// Created by Pi66

// Copyright ©Pi66 2026