-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
How to deal with hyperlinks in jade templates? #83
Comments
we do it this way:
|
good to know to use namespaces but i meant a link inside a long sentence. it would be wrong to split up the sentence into three fragments like A translation would be horrible. advice? |
if splitting is no option - where i agree you could still use postProcessors: write the content in markdown or jade: http://i18next.com/node/pages/doc_templates.html http://i18next.com/node/pages/doc_features.html#postprocessing |
ok, i tried with markdown for postprocess but it generates invalid html code. this jade line here produces duplicate p tags: why? postprocessor is normal as suggested:
|
markdown syntax a line is always a just don't append to a p tag in your jade file:
|
ouch, that's not what i want. i want to translate each single sentence within a long paragraph. translating a whole paragraph might be a bad idea. can we somehow tell markdown not to add a p tag? |
don't know if there is some option to change this - my bet is no - as this is what markdown is for - publishing content. |
not sure if the issues title is right markdown doesn't wrap in a p tag...it's more every sentence beginning with a newline will be a paragraph:
will be parsed to:
|
Hello again
I'm struggling to translate text in jade templates that contain hyperlinks. For example:
This does not look nice. I don't want to save HTML tags in translation files. How would you solve his?
The text was updated successfully, but these errors were encountered: