Git Product home page Git Product logo

Comments (4)

jeremydw avatar jeremydw commented on May 18, 2024

Markdown bodies can now be localized, but they are not extracted into messages files. HTML content bodies can make use of standard translation tags. If anyone has any suggestions for message storage or extraction of long-form Markdown documents, I'm all ears!

from grow.

WillsB3 avatar WillsB3 commented on May 18, 2024

@jeremydw Did you ever get any further with this?

I have some long form copy in a documents .yaml which I'd like to render via Markdown:

$title: My Document

blurb: >
    This is some long form copy that is split into multiple paragraphs.

    Here is the second paragraph.

Is it possible to render individual fields of a document with markdown by using some built in filter in the template?

Edit: I now realise this issue is regarding translation of markdown content. Oops - Sorry. Let me know if there's a more appropriate place for this discussion..

from grow.

jeremydw avatar jeremydw commented on May 18, 2024

It is! You should be able to do {{doc.blurb|markdown|safe}}. There is a built-in markdown filter that will render its contents as markdown. Does that meet your needs?

https://grow.io/docs/templates/#markdown

from grow.

WillsB3 avatar WillsB3 commented on May 18, 2024

Perfect - Thanks. Can't believe I didn't find that in the docs...

Thanks again

from grow.

Related Issues (20)

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.