-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Respect of the formatting of the template (line breaks, spacing...) #29
Comments
yeah, would be great! Other preview engines detect type or go by extended file-extension (ie. .html.hbs/ .md.hbs. etc) |
Hi @FALLAI-Denis and sorry for the late response. I didn't see this issue until I got an e-mail notification yesterday when @utillity commented on it. The extension is using a I suppose it would be possible to wrap a |
Good point! I would say just make is a setting to "auto-detect" based on filename, or based on first 50 characters containing "<html" or something |
Thanks @johnknoop The rendering could be determined by the content after transformation:
The rendering could also be determined by the command activated to produce the transform:
This second solution is therefore not linked to the content, but to the choice of the user. In the case of plain text rendering, I suggest the result to feed a classic editor rather than a WebViewPanel, (even for html text). |
good point - I like latter one the most :) |
Bump for visibility 😊 My thoughts:
|
We plan to use Handlebars to generate program source codes from template, (so template and result are plain text, not html).
The preview should respect the formatting of the template:
Also see if it would be possible to save the preview to keep the result.
See simulation of the expected result by adding
<pre>
</pre>
tags to the template:The text was updated successfully, but these errors were encountered: