Bug fixed.

This commit is contained in:
Toshio Sekiya 2022-11-28 10:48:58 +09:00
parent 85f4248515
commit afc7a8517d
4 changed files with 5 additions and 4 deletions

View file

@ -51,10 +51,11 @@ abstract = "src/abstract.src.md"
# They are absolute paths.
imagefiles = srcfiles.map do |file|
d = file.pathmap("%d")
File.read(file)\
.gsub(/^~~~.*?^~~~\n/m,'').gsub(/^ .*\n/,'')\
.scan(/!\[.*?\]\((.*?)\)/).flatten.sort.uniq\
.map{|img| File.absolute_path("#{d}/#{img}")}
s = File.read(file)
at_if_else(s, "html")\
.gsub(/^~~~.*?^~~~\n/m,'').gsub(/^ .*\n/,'')\
.scan(/!\[.*?\]\((.*?)\)/).flatten.sort.uniq\
.map{|img| File.absolute_path("#{d}/#{img}")}
end.flatten.sort.uniq
imagefiles = FileList[*imagefiles]

BIN
docs/image/gtklistitem.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
docs/image/list1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

BIN
docs/image/tree.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB