Skip to content

Commit 56a7566

Browse files
committed
Merge branch 'develop'
2 parents b852e48 + cbd463a commit 56a7566

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

.github/workflows/codeql.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ jobs:
3232
uses: actions/checkout@v4
3333

3434
- name: Initialize CodeQL
35-
uses: github/codeql-action/init@v2
35+
uses: github/codeql-action/init@v3
3636
with:
3737
languages: ${{ matrix.language }}
3838
queries: +security-and-quality
3939

4040
- name: Autobuild
41-
uses: github/codeql-action/autobuild@v2
41+
uses: github/codeql-action/autobuild@v3
4242

4343
- name: Perform CodeQL Analysis
44-
uses: github/codeql-action/analyze@v2
44+
uses: github/codeql-action/analyze@v3
4545
with:
4646
category: "/language:${{ matrix.language }}"

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Checkout repo
1212
uses: actions/checkout@v4
1313
- name: Setup Node.js version
14-
uses: actions/setup-node@v3
14+
uses: actions/setup-node@v4
1515
with:
1616
node-version-file: '.nvmrc'
1717
- name: Generate release body

app/handler.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ def get_question_of_today():
2727
date
2828
question {
2929
questionFrontendId
30-
title titleSlug
30+
title
31+
titleSlug
3132
content
3233
isPaidOnly
3334
difficulty
@@ -45,7 +46,6 @@ def get_question_of_today():
4546
},
4647
headers={
4748
"authority": "leetcode.com",
48-
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36",
4949
}
5050
)
5151

app/utils/markdown.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,16 @@ def convert_a(self, el, text, convert_as_inline):
5555
convert_as_inline=convert_as_inline
5656
)
5757

58+
def convert_style(self, el, text, convert_as_inline):
59+
return ''
60+
5861
def generate(html, **options):
5962
"""Convert function with options predefined"""
6063

6164
result = TelegramMarkdownConverter(
6265
**options,
63-
convert=['br', 'p', 'img', 'code', 'pre', 'ul', 'ol', 'li', 'a', 'sup', 'sub'],
66+
autolinks=False,
67+
convert=['br', 'p', 'img', 'code', 'pre', 'ul', 'ol', 'li', 'a', 'sup', 'sub', 'style'],
6468
bullets='•••'
6569
).convert(html).strip()
6670

0 commit comments

Comments
 (0)