Giter Site home page Giter Site logo

Comments (3)

stadelmanma avatar stadelmanma commented on July 17, 2024

When I support the style tag I want to add support for arbitrary markup that just gets passed directly into the properties file. This will allow me to transparently handle lists by defining an attribute such as

numPr="ilvl: #{@builder.ilvl}; numId: #{@definition.numid}"

that would get dropped straight into the <pPr> tag after w:'s are added.

Ideally I could use a mapping to get from CSS tag to wordML tag but anything that isn't predefined would end up being passed straight through using the format

"<w:%s w:val="%s" />"

Everything defined on the node as attributes will go in <pPr> or <rPr>. Nested attributes will be handled if the value has been put in double quotes generating a proper opening and closing tag.

from sablon.

stadelmanma avatar stadelmanma commented on July 17, 2024

Allowing the use of CSS classes would be SWEET!

But how? is the real question, since that is a whole other can of worms.

from sablon.

stadelmanma avatar stadelmanma commented on July 17, 2024

This is all covered on my live branch. Hopefully some of these fixes will make it into upstream since it is a good expansion of functionality but I doubt it.

from sablon.

Related Issues (16)

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.