Merge branch 'Mayuri-Chan:main' into main

This commit is contained in:
Marvin 2024-01-14 10:23:18 +01:00 committed by GitHub
commit 80f35dd217
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View file

@ -53,4 +53,4 @@ we have just done above.
If you are feeling eager to continue you can take a shortcut to :doc:`../start/invoking` and come back
later to learn some more details.
.. _community: https://t.me/Pyrofork
.. _community: https://t.me/MayuriChan-Chat

View file

@ -121,4 +121,4 @@ For example, given the ID *123456789*, here's how Pyrofork can tell entities apa
So, every time you take a raw ID, make sure to translate it into the correct ID when you want to use it with an
high-level method.
.. _Community: https://t.me/Pyrofork
.. _Community: https://t.me/MayuriChan-Chat

View file

@ -18,7 +18,7 @@
# along with Pyrofork. If not, see <http://www.gnu.org/licenses/>.
__fork_name__ = "PyroFork"
__version__ = "2.3.16.post3"
__version__ = "2.3.16.post4"
__license__ = "GNU Lesser General Public License v3.0 (LGPL-3.0)"
__copyright__ = "Copyright (C) 2022-present Mayuri-Chan <https://github.com/Mayuri-Chan>"

View file

@ -74,14 +74,14 @@ class Markdown:
line = re.sub(r'^> ', OPENING_TAG.format("blockquote"), line)
line = re.sub(r'^>', OPENING_TAG.format("blockquote"), line)
in_blockquote = True
result.append(line.strip())
result.append(line)
else:
result.append(line[-1].strip())
result.append(line[-1])
else:
if in_blockquote:
line = CLOSING_TAG.format("blockquote") + line
in_blockquote = False
result.append(line.strip())
result.append(line)
if in_blockquote:
line = result[len(result)-1] + CLOSING_TAG.format("blockquote")