UI/Markdown: surface spellbook in MD output and sidebar

- New AE:GenerateMarkdownSpellbook(): one section per spell tab
  (General, class, pet) with icon + name + db.ascension.gg link + rank.
  Skips empty tabs.
- /coae export mdspellbook        new slash subcommand
- /coae export md                 now appends a Spellbook section after
                                  Talents in the full wiki page
- UI sidebar: "MD Spellbook" button added under Markdown (Wiki)
This commit is contained in:
2026-05-07 12:20:44 +02:00
parent 6badf0e7ea
commit f9a7ab5beb
3 changed files with 56 additions and 5 deletions
+9 -3
View File
@@ -33,19 +33,25 @@ local function buildSections()
{ "Enchants", function() local ae = ce(); if ae then ae:Export("enchants") end end },
}},
{ title = "Markdown (Wiki)", items = {
{ "MD Gear", function()
{ "MD Gear", function()
local ae = ce()
if ae and ae.GenerateMarkdownGear then
showExport(ae:GenerateMarkdownGear() or "", "CoaExporter - Markdown Gear (Ctrl+C)")
end
end },
{ "MD Enchants", function()
{ "MD Enchants", function()
local ae = ce()
if ae and ae.GenerateMarkdownEnchants then
showExport(ae:GenerateMarkdownEnchants() or "", "CoaExporter - Markdown Enchants (Ctrl+C)")
end
end },
{ "MD Full", function()
{ "MD Spellbook", function()
local ae = ce()
if ae and ae.GenerateMarkdownSpellbook then
showExport(ae:GenerateMarkdownSpellbook() or "", "CoaExporter - Markdown Spellbook (Ctrl+C)")
end
end },
{ "MD Full", function()
local ae = ce()
if ae and ae.GenerateMarkdownFull then
showExport(ae:GenerateMarkdownFull() or "", "CoaExporter - Wiki Markdown (Ctrl+C)")