clear-code / redmine_common_mark Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
By gjtorikian/commonmarker#140 change, CommonMarker::Config::Parse
, CommonMarker::Config::Render
were removed.
They seem to change to CommonMarker::Config::OPTS.fetch(:parse)
, CommonMarker::Config::OPTS.fetch(:render)
respectively.
(I saw the note in README after written the following...)
RedMica 2.0 has (Redmine 5.0 will have) experimental CommonMark support.
Feature #32424: CommonMark Markdown Text Formatting - Redmine
Its Gemfile contains the following version specifier.
gem "commonmarker", (Gem.ruby_version < Gem::Version.new('2.6.0') ? '0.21.0' : '0.23.1')
And causes the following error when using with CommonMark plugin.
You cannot specify the same gem twice with different version requirements.
You specified: commonmarker (= 0.23.1) and commonmarker (>= 0.22.0). Bundler cannot continue.
I prefer to use this plugin (yet) because of
/home/redmine/redmine-4.1.0/lib/redmine/plugin.rb:102:in `register': Plugin not found. The directory for plugin common_mark should be /home/redmine/redmine-4.1.0/plugins/common_mark. (Redmine::PluginNotFound)
commonmarker
changed its default to be safe [1], [2], i.e. HTML tags can not be used.
There is :UNSAFE
option to enable HTML tags, but I am not sure it is suitable to set it as default.
Maybe better to have user option to toggle it.
bundle install
is required to install depended libraries such as commonmarker after git clone
.
I think it is good default to enable :tagfilter
extension of CommonMarker.
So that <script>
tag, etc. are filtered.
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.