From 67a080cd6d2b08a192ad4b6977358645616ddb65 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Tue, 7 Jan 2025 23:19:47 +0700 Subject: all: fix GoEmbed that does not excludes options from ConvertOptions --- ciigo.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ciigo.go b/ciigo.go index 4ae8a7b..445bba5 100644 --- a/ciigo.go +++ b/ciigo.go @@ -296,9 +296,11 @@ func (ciigo *Ciigo) GoEmbed(embedOpts EmbedOptions) (err error) { ciigo.converter.convertFileMarkups(fileMarkups, convertForce) + var excludes = append(defExcludes, embedOpts.Exclude...) + var mfsOpts = &memfs.Options{ Root: embedOpts.Root, - Excludes: defExcludes, + Excludes: excludes, Embed: embedOpts.EmbedOptions, } -- cgit v1.3