GehDoc / vscode-textile-preview

Provides rich language support for Textile within Visual Studio Code : synchronised preview side by side with the textile markup source, source code folding, code block syntax highlighting, link to headlines with completion...
Other
6 stars 2 forks source link

PRE tags inserted as HTML in textile document are not highlighted in the preview #63

Closed GehDoc closed 2 years ago

GehDoc commented 2 years ago

Textile Language Features: 1.3.16 VS Code: 1.68.0 Operating system: Fedora 36

Describe the bug PRE tags inserted as HTML in textile document are not highlighted in the preview.

To Reproduce Insert some text to create a first paragraph, then a newline, then a HTML PRE tag with some text inside. While you modify the text of the PRE tag, the text of the paragraph above that PRE tag is highlighted in the textile preview.

Expected behavior While you modify the text of the PRE tag, the text of that PRE tag should be highlighted in the textile preview.

Additional context Inspection of the webview content show that the PRE tags directy inserted as HTML code are not line-numbered, causing the bug.

GehDoc commented 2 years ago

Not a bug, was caused by the previous dl block. Reported here : https://github.com/GehDoc/textile-js/issues/4