Skip to content

Commit

Permalink
add more sections
Browse files Browse the repository at this point in the history
  • Loading branch information
feruzm committed Aug 8, 2023
1 parent e82fd14 commit 4cbed43
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/consts/section-list.const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ export const SECTION_LIST = [
'referrals',
'payout',
'activities',
'spk'
'spk',
'trail'
]
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ 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,
catchPostImage,
postBodySummary,
proxifyImageSrc,
setProxyBase,
setCacheSize
setCacheSize,
SECTION_LIST
}
1 change: 1 addition & 0 deletions src/methods/markdown-to-html.method.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 4cbed43

Please sign in to comment.