emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Running Node.js and exporting css.


From: Josh Berry
Subject: [O] Running Node.js and exporting css.
Date: Fri, 22 Aug 2014 10:54:21 -0400

Couple of weeks ago, I accidentally spammed the message board with several attempts to send up a couple of patches for some problems I was seeing.  So, firstly, apologies for the spam. 

The two problems I was seeing were related to executing js using node.js, and exporting css with vendor properties.

The node.js problem is that it will start putting in newlines if a structure is past some size.  I think this may be "fixable" by changing some settings in node.js, but it was also easy enough to change the regex to look past newlines in org.  An example of the problem can be seen by running the following

  #+BEGIN_SRC js
    return [[1, 2],[1, 2],[1, 2],[1, 2],[1, 2],[1, 2],[1,2]]
  #+END_SRC

If you remove just one of the inner arrays, it will work as desired.

The other problem is just as short.  Simply export the following when you have org-src-fontify-natively set.

  #+BEGIN_SRC css
    foo {
      -webkit-appearance: none;
    }
  #+END_SRC

I cobbled a small change that seemed to fix that.

At any rate, again apologies for the previous spam.  I didn't want to just respam immediately with an apology.  

Thanks!

--
josh

reply via email to

[Prev in Thread] Current Thread [Next in Thread]