Skip to content

Commit

Permalink
fix deprecated function calls
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxinghu committed Aug 30, 2023
1 parent ca91a89 commit cf73ad3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/orga/src/parse/block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const block: Action = (begin: BlockBegin, ctx): Handler => {
const align = (content: string) => {
let indent = -1
return content
.trimRight()
.trimEnd()
.split('\n')
.map((line) => {
const _indent = line.search(/\S/)
Expand Down
2 changes: 1 addition & 1 deletion packages/orga/src/parse/latex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const latex: Action = (begin: LatexBegin, context): Handler => {
const align = (content: string) => {
let indent = -1
return content
.trimRight()
.trimEnd()
.split('\n')
.map((line) => {
const _indent = line.search(/\S/)
Expand Down

0 comments on commit cf73ad3

Please sign in to comment.