Skip to content

Spaces/tabs being rendered as HTML code in Markdown code blocks #2497

@gabriel-abn

Description

@gabriel-abn

Summary

hi guys

markdown code blocks rendering good but still with some invalid characters

Image

these html codes are my tabs... if i remove them, all codes disappear

strings also being rendered with a "\" before all underscores

just updated ty before trying creating the issue and the error persists

the example from the image:

class IProductsRepository[T: Product](Protocol):
	async def get(self, id: int) -> T | None: ...

	class _SearchFilterOptions(TypedDict, total=False):
		category: Literal["name", "acronym", "exhibition_name"]
		name: str
		visible: bool
		sellable: bool
		product_type_id: int
		product_list: list[int]
		page: int
		page_limit: int

	async def search(self, options: _SearchFilterOptions) -> list[T]:
		"""
		Search/list products based on the provided filter options.

		Supports both specific search (by category and name) and general listing with filters.
		If category and name are provided, performs specific search.
		Otherwise, lists all products matching the filter criteria.

		### Args:
		- options (_SearchFilterOptions): The search filter options:
		```python
		{
			"category": "name" | "acronym" | "exhibition_name" # (optional for listing),
			"name": "Product Name" # (optional for listing, required if category is provided),
			"visible": True | False,
			"sellable": True | False,
			"product_type_id": int,
			"product_list": list[int],
			"page": int,
			"page_limit": int,
		}
		```

		### Returns:
			list[T]: A list of products that match the search/filter criteria.
		"""
		...

Version

0.0.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingserverRelated to the LSP server

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions