diff options
| author | Bobby <[email protected]> | 2023-07-09 21:20:56 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2023-07-09 21:20:56 -0400 |
| commit | 06b8da96aa67d3a6ef7f34b4bc68aa11ff5a339b (patch) | |
| tree | 9f2f38e6542e455488f87efdf1c9bc12b6e5cb59 /blog | |
| parent | 13737a383bd48b6a4782154bea4d714e994901f9 (diff) | |
| download | thatcomputerscientist-06b8da96aa67d3a6ef7f34b4bc68aa11ff5a339b.tar.xz thatcomputerscientist-06b8da96aa67d3a6ef7f34b4bc68aa11ff5a339b.zip | |
Full Code edit support in posts
Diffstat (limited to 'blog')
| -rw-r--r-- | blog/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/blog/views.py b/blog/views.py index f1966994..e2dd28f5 100644 --- a/blog/views.py +++ b/blog/views.py @@ -158,7 +158,7 @@ def post(request, slug): # code stored in .ql-syntax class soup = BeautifulSoup(post.body, 'html.parser') - code_blocks = soup.find_all('pre', class_='ql-syntax') + code_blocks = soup.find_all('pre') for code_block in code_blocks: data_language = code_block.get('data-language') if data_language == 'true': |
