mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-12 00:54:51 +00:00
Merge branch 'Mayuri-Chan:main' into main
This commit is contained in:
commit
80f35dd217
4 changed files with 6 additions and 6 deletions
|
|
@ -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
|
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.
|
later to learn some more details.
|
||||||
|
|
||||||
.. _community: https://t.me/Pyrofork
|
.. _community: https://t.me/MayuriChan-Chat
|
||||||
|
|
|
||||||
|
|
@ -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
|
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.
|
high-level method.
|
||||||
|
|
||||||
.. _Community: https://t.me/Pyrofork
|
.. _Community: https://t.me/MayuriChan-Chat
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
# along with Pyrofork. If not, see <http://www.gnu.org/licenses/>.
|
# along with Pyrofork. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
__fork_name__ = "PyroFork"
|
__fork_name__ = "PyroFork"
|
||||||
__version__ = "2.3.16.post3"
|
__version__ = "2.3.16.post4"
|
||||||
__license__ = "GNU Lesser General Public License v3.0 (LGPL-3.0)"
|
__license__ = "GNU Lesser General Public License v3.0 (LGPL-3.0)"
|
||||||
__copyright__ = "Copyright (C) 2022-present Mayuri-Chan <https://github.com/Mayuri-Chan>"
|
__copyright__ = "Copyright (C) 2022-present Mayuri-Chan <https://github.com/Mayuri-Chan>"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -74,14 +74,14 @@ class Markdown:
|
||||||
line = re.sub(r'^> ', OPENING_TAG.format("blockquote"), line)
|
line = re.sub(r'^> ', OPENING_TAG.format("blockquote"), line)
|
||||||
line = re.sub(r'^>', OPENING_TAG.format("blockquote"), line)
|
line = re.sub(r'^>', OPENING_TAG.format("blockquote"), line)
|
||||||
in_blockquote = True
|
in_blockquote = True
|
||||||
result.append(line.strip())
|
result.append(line)
|
||||||
else:
|
else:
|
||||||
result.append(line[-1].strip())
|
result.append(line[-1])
|
||||||
else:
|
else:
|
||||||
if in_blockquote:
|
if in_blockquote:
|
||||||
line = CLOSING_TAG.format("blockquote") + line
|
line = CLOSING_TAG.format("blockquote") + line
|
||||||
in_blockquote = False
|
in_blockquote = False
|
||||||
result.append(line.strip())
|
result.append(line)
|
||||||
|
|
||||||
if in_blockquote:
|
if in_blockquote:
|
||||||
line = result[len(result)-1] + CLOSING_TAG.format("blockquote")
|
line = result[len(result)-1] + CLOSING_TAG.format("blockquote")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue