Git Product home page Git Product logo

docpad-plugin-text's People

Contributors

balupton avatar dcohenb avatar dependabot[bot] avatar jeffbski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docpad-plugin-text's Issues

Documentation

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...

html seems to be escaped

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?

Rendering in attributes

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?

Readme : not =

Line 49 of readme.md should read:
@t('*markdown*', {render:"markdown"})
rather than:
@t('*markdown*', {render="markdown"})

It caused me a moment of confusion.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.