Skip to content

Commit

Permalink
Merge pull request #4 from miaowware:rel
Browse files Browse the repository at this point in the history
Release prep 1.0.0
  • Loading branch information
0x5c authored Sep 7, 2021
2 parents b7e8082 + 3b8003c commit 9e02375
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
15 changes: 11 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]


<!-- ## [{{version}}] - YYYY-MM-DD -->
## [1.0.0] - 2021-09-07
### Added
- Inline markdown formatting.
- Blockquote formatting.
- Code block formatting.
- URL formatting (Titled and Non-embedding).
- User/Role/Channel mention formatting.
- Timestamp formatting.
- Markdown and mention escaping functions.


<!-- NOTE: Add these links to link the title of each section of the changelog to link to the release -->
<!-- [Unreleased]: https://github.com/miaowware/discord-styled-text/compare/{{version}}...HEAD -->
<!-- [{{version}}]: https://github.com/miaowware/discord-styled-text/releases/tag/{{version}} -->
[Unreleased]: https://github.com/miaowware/discord-styled-text/compare/v1.0.0...HEAD
[1.0.0]: https://github.com/miaowware/discord-styled-text/releases/tag/v1.0.0
2 changes: 1 addition & 1 deletion discord_styler/__info__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
__summary__ = "A small library to style text for Discord without having to remember any syntax"
__webpage__ = "https://discord-styled-text.miaow.io"

__version__ = "{{version}}"
__version__ = "1.0.0"

__author__ = "classabbyamp, 0x5c"
__email__ = "[email protected], [email protected]"
Expand Down
5 changes: 1 addition & 4 deletions discord_styler/styler.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
from enum import Enum
from typing import Any, Union

# TODO:
# - write tests
# - clean up repo

__all__ = [
"StyledText",
Expand Down Expand Up @@ -138,7 +135,7 @@ def __init__(self, code: str, lang: str = None):
self.__lang = lang if lang else ""

def __str__(self) -> str:
return f"```{self.__lang}\n" + self.__code + "\n```"
return f"```{self.__lang}\n{self.__code}\n```"


# ---- URLs ----
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
author = 'classabbyamp, 0x5c'

# The full version, including alpha/beta/rc tags
release = '{{version}}'
release = '1.0.0'


# -- General configuration ---------------------------------------------------
Expand Down
6 changes: 6 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ Timestamps
Utility Functions
-----------------

.. NOTE:: Escaping of markdown titled URLs (like this example below) in text is not yet supported!

.. code-block:: markdown
[title](https://example.com)
.. autofunction:: escape_everything()

.. autofunction:: escape_markdown()
Expand Down

0 comments on commit 9e02375

Please sign in to comment.