docpad / docpad-plugin-text Goto Github PK
View Code? Open in Web Editor NEWAllows you to render templateData with HTML elements
License: Other
Allows you to render templateData with HTML elements
License: Other
Text is a valid tag in SVG, and the plugin absolutely mangles them:
https://developer.mozilla.org/en-US/docs/Web/SVG/Element/text
The issue is replicable by having inline SVG in any file that will be parsed by docpad while this plugin is enabled. Text will disappear in the SVG.
The documentation is extremely confusing. After reading it, I would just don't what to do with this. Fortunately, after some discussions through IRC, I learned that it could be used in more situations than what is explained in the documentation.
Also, some examples would be welcome ... for instance you are mentioning translation ... How would you handle this using the text plugin? Not this is trivial for anyone ...
Just to be clear, I'm not complaining... just some feedback...
I'm preparing a blog post that explains with more details how to embed markdown text within a jade template...
It looks like html fragments within the markdown text are escaped instead of being added to the html output.
Doesn't this go through "marked" processing?
I am wondering if it is possible to render output in HTML attributes and stripping out the output HTML by rendering just text.
I am using "description" field of the page meta-data to render HTML's meta tag for description (in Jade).
meta(name="description", content="#{getPreparedDescription()}")
and the description meta-data value looks like this:
description: >
<t render="markdown">
Some text with [link](/2017/01/22/article/).
</t>
Now the description value in the "meta" tag is just escaped and rendered as is. Is there any function available to leave only the text by stripping out <t> tag and Markdown?
Line 49 of readme.md should read:
@t('*markdown*', {render:"markdown"})
rather than:
@t('*markdown*', {render="markdown"})
It caused me a moment of confusion.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.