♻️(backend) rename convert_markdown to convert (#1114)

Renamed the `convert_markdown` method to `convert` to prepare for an
all-purpose conversion endpoint, enabling support for multiple formats
and simplifying future extension.

Signed-off-by: Stephan Meijer <me@stephanmeijer.com>
This commit is contained in:
Stephan Meijer
2025-07-04 15:30:32 +02:00
committed by GitHub
parent e148c237f1
commit 58bf5071c2
4 changed files with 20 additions and 22 deletions

View File

@@ -34,7 +34,7 @@ class YdocConverter:
# Note: Yprovider microservice accepts only raw token, which is not recommended
return settings.Y_PROVIDER_API_KEY
def convert_markdown(self, text):
def convert(self, text):
"""Convert a Markdown text into our internal format using an external microservice."""
if not text: