1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2026-02-28 21:09:52 +00:00

Compare commits

...

1 Commits

Author SHA1 Message Date
Saq Imtiaz
7a866b93e3 fix: alt support for images in markdown (#9700) 2026-02-27 18:53:58 +01:00

View File

@@ -420,7 +420,7 @@ function extendInlineParse(thisArg,origFunc,twInlineRules) {
/// post processing ///
function wikify(state) {
var href, title, src;
var href, title, src, alt;
var tagStack = [];
state.tokens.forEach(function(blockToken) {
@@ -458,6 +458,7 @@ function wikify(state) {
token.tag = "$image";
src = token.attrGet("src");
alt = token.attrGet("alt");
token.attrSet("alt",alt);
title = token.attrGet("title");
token.attrs[token.attrIndex("src")][0] = "source";