@ecency/render-helper 2.2.24 → 2.2.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecency/render-helper",
3
- "version": "2.2.24",
3
+ "version": "2.2.25",
4
4
  "description": "Markdown+Html Render helper",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -15,5 +15,6 @@ export const SECTION_LIST = [
15
15
  'referrals',
16
16
  'payout',
17
17
  'activities',
18
- 'spk'
18
+ 'spk',
19
+ 'trail'
19
20
  ]
package/src/index.ts CHANGED
@@ -3,6 +3,7 @@ import { catchPostImage } from './catch-post-image'
3
3
  import { getPostBodySummary as postBodySummary } from './post-body-summary'
4
4
  import { setProxyBase, proxifyImageSrc } from './proxify-image-src'
5
5
  import { setCacheSize } from './cache'
6
+ import { SECTION_LIST } from './consts'
6
7
 
7
8
  export {
8
9
  renderPostBody,
@@ -10,5 +11,6 @@ export {
10
11
  postBodySummary,
11
12
  proxifyImageSrc,
12
13
  setProxyBase,
13
- setCacheSize
14
+ setCacheSize,
15
+ SECTION_LIST
14
16
  }
@@ -12,6 +12,7 @@ export function markdownToHTML(input: string, forApp: boolean, webp: boolean): s
12
12
  // Internalize leofinance.io links
13
13
  input = input.replace("https://leofinance.io/threads/view/", "/@");
14
14
  input = input.replace("https://leofinance.io/posts/", "/@");
15
+ input = input.replace("https://leofinance.io/threads/", "/@");
15
16
 
16
17
 
17
18
  const md = new Remarkable({