Skip to content

Commit

Permalink
feat(yuque): 语雀 pwd 模式下增加是否保留公式代码选项
Browse files Browse the repository at this point in the history
  • Loading branch information
LetTTGACO committed Oct 28, 2024
1 parent b353033 commit 8df0568
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk-yuque/src/pwd/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class YuqueClient {
method: 'GET',
data: {
attachment: true,
latexcode: false,
latexcode: this.config.keepLatexCode, // 是否保留latex代码
anchor: false,
linebreak: !!this.config.linebreak,
},
Expand Down
2 changes: 2 additions & 0 deletions packages/sdk-yuque/src/pwd/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ export interface YuqueWithPwdConfig {
login: string
repo: string
linebreak?: boolean
/** 保留公式代码而不是以图片形式 */
keepLatexCode?: boolean
onlyPublic?: boolean
onlyPublished?: boolean
/** 下载并发数 */
Expand Down

0 comments on commit 8df0568

Please sign in to comment.