Fix full title text in markdown - getFullTitle() needs a list of lines.
This commit is contained in:
parent
127c0380db
commit
cd56cd0bc5
|
@ -185,7 +185,8 @@ def expandCustomMarkdown(t, dir, latex):
|
||||||
fname = m.group(1) + ".abc"
|
fname = m.group(1) + ".abc"
|
||||||
path = pathlib.Path(dir, fname)
|
path = pathlib.Path(dir, fname)
|
||||||
with path.open() as f:
|
with path.open() as f:
|
||||||
return "[" + getFullTitle(f, dir, latex=latex) + "](" + fname + ")"
|
lines = f.readlines()
|
||||||
|
return "[" + getFullTitle(lines, dir, latex=latex) + "](" + fname + ")"
|
||||||
return re.sub(r'<(.*?).abc>', getTitleLink, t)
|
return re.sub(r'<(.*?).abc>', getTitleLink, t)
|
||||||
|
|
||||||
# Return the raw text for a given field. Optionally the nth field is taken,
|
# Return the raw text for a given field. Optionally the nth field is taken,
|
||||||
|
|
Loading…
Reference in New Issue