diff --git a/package.json b/package.json index 653aa3e..075544d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ecency/render-helper", - "version": "2.2.24", + "version": "2.2.25", "description": "Markdown+Html Render helper", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/consts/section-list.const.ts b/src/consts/section-list.const.ts index a41e14f..14224b4 100644 --- a/src/consts/section-list.const.ts +++ b/src/consts/section-list.const.ts @@ -15,5 +15,6 @@ export const SECTION_LIST = [ 'referrals', 'payout', 'activities', - 'spk' + 'spk', + 'trail' ] diff --git a/src/index.ts b/src/index.ts index 53535bf..7625543 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,6 +3,7 @@ import { catchPostImage } from './catch-post-image' import { getPostBodySummary as postBodySummary } from './post-body-summary' import { setProxyBase, proxifyImageSrc } from './proxify-image-src' import { setCacheSize } from './cache' +import { SECTION_LIST } from './consts' export { renderPostBody, @@ -10,5 +11,6 @@ export { postBodySummary, proxifyImageSrc, setProxyBase, - setCacheSize + setCacheSize, + SECTION_LIST } diff --git a/src/methods/markdown-to-html.method.ts b/src/methods/markdown-to-html.method.ts index a58e0f8..5057c1d 100644 --- a/src/methods/markdown-to-html.method.ts +++ b/src/methods/markdown-to-html.method.ts @@ -12,6 +12,7 @@ export function markdownToHTML(input: string, forApp: boolean, webp: boolean): s // Internalize leofinance.io links input = input.replace("https://leofinance.io/threads/view/", "/@"); input = input.replace("https://leofinance.io/posts/", "/@"); + input = input.replace("https://leofinance.io/threads/", "/@"); const md = new Remarkable({