larsch / creole Goto Github PK
View Code? Open in Web Editor NEWCreole-to-HTML converter
Creole-to-HTML converter
I'm not sure if this is indicative of a larger issue with how Creole renders, but I noticed that the link to wikicreole.org, didn't work from your readme.
I think we should add support for:
{{image.jpg?50x100}}
{{image.jpg?50%|alternate text}}
With regex looking like this:
/\A{{\s_(.?)(?(\d+x\d+|\d+%))?\s(|\s_(.?)\s)?}}/
I can't make a PR right now, maybe next month.
Is there a legal license to go along with this gem?
Hi there! I'm a member of GitHub's coding team and I was recently reviewing a report that certain maliciously crafted strings can cause the creole
gem to take a long time to render by forcing the gem to spend exponential time matching strings to regular expressions.
Example:
irb(main):006:0> Benchmark.measure { Creole.creolize("|{{{{}}}}{{{{}}}}{{{{}}}}{{{{}}}}{{{{}}}}{{{{}}}}{{{{}}}}{{{{~") }
=> #<Benchmark::Tms:0x00007f9cd7792220 @label="", @real=7.256839563999165, @cstime=0.0, @cutime=0.0, @stime=0.0, @utime=7.256716999999998, @total=7.256716999999998>
The impact for us is not huge (we limit the amount of time spent rendering) but just wanted to pass this info along!
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.