summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2025-01-07 23:19:47 +0700
committerShulhan <ms@kilabit.info>2025-01-07 23:19:47 +0700
commit67a080cd6d2b08a192ad4b6977358645616ddb65 (patch)
tree988e180d73d670453c897b97f85dd579dac6cd2a
parent9a03cfb3c4289b9af54246950c957265ee83ecc5 (diff)
downloadciigo-67a080cd6d2b08a192ad4b6977358645616ddb65.tar.xz
all: fix GoEmbed that does not excludes options from ConvertOptions
-rw-r--r--ciigo.go4
1 files changed, 3 insertions, 1 deletions
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,
}