feat: replace default caption
This commit is contained in:
parent
0f5de57067
commit
8bae716f64
1 changed files with 2 additions and 2 deletions
|
|
@ -95,7 +95,7 @@ class DocumentParser @Inject constructor(
|
|||
|
||||
val alt = element.attr("alt").trim().takeIf {
|
||||
it.clearMarkdown().containsVisibleText()
|
||||
} ?: src.substringBeforeLast(".")
|
||||
} ?: "Image"
|
||||
|
||||
element.append("\n[[$src|$alt]]\n")
|
||||
}
|
||||
|
|
@ -113,7 +113,7 @@ class DocumentParser @Inject constructor(
|
|||
} == true
|
||||
} ?: return@forEach
|
||||
|
||||
val alt = src.substringBeforeLast(".")
|
||||
val alt = "Image"
|
||||
|
||||
element.append("\n[[$src|$alt]]\n")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue