Skip to content

Commit

Permalink
fix: add inline_image template type
Browse files Browse the repository at this point in the history
  • Loading branch information
maxakuru committed Oct 17, 2023
1 parent 92dcf07 commit db70223
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions worker/src/util/adoc2html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ class FranklinConverter implements AdocTypes.Converter {
const result = /* html */`<li>${text ? `<p>${text || ''}</p>${content || ''}` : ''}</li>`;
return result;
},
inline_image: (node) => this.templates.image(node as AdocTypes.AbstractBlock),
image: (node) => {
const src = node.getAttribute('target') as string | undefined;
if (!src) {
Expand Down

0 comments on commit db70223

Please sign in to comment.