Comments (4)
Try a stringex version below 2.0.0, 1.5.1 should work.
from kramdown.
If it helps, running this code
foo=(
2.0.8 2.0.7 2.0.6 2.0.5
2.0.4 2.0.3 2.0.2 2.0.1
2.0.0 1.5.1 1.5.0 1.3.2
1.3.1 1.2.0 1.1.0 1.0.2
1.0.0
)
bar='
Hello
=====
'
for baz in ${foo[*]}
do
gem uninstall -I stringex
gem install -v $baz stringex
if kramdown --transliterated-header-ids <<< "$bar" 2>/dev/null
then
printf '\e[1;32m%s\e[m\n' "$baz GOOD"
else
printf '\e[1;31m%s\e[m\n' "$baz BAD"
fi
done
Yields this
2.0.8 BAD
2.0.7 BAD
2.0.6 BAD
2.0.5 BAD
2.0.4 BAD
2.0.3 BAD
2.0.2 BAD
2.0.1 BAD
2.0.0 BAD
1.5.1 GOOD
1.5.0 BAD
1.3.2 GOOD
1.3.1 BAD
1.2.0 BAD
1.1.0 BAD
1.0.2 BAD
1.0.0 BAD
from kramdown.
Thanks @svnpenn! Good to know!
They changed quite a bit between the 1.5.1 and the 2.0.0 version. The things kramdown uses have been changed to be more complicated and now depend on some static confguration which is not good for a library in most cases.
I didn't want to duplicate the translation files because it would just blow up the size of kramdown but I should probably have a look at the 2.0.x versions to see how to make them usable with kramdown.
from kramdown.
I have fixed this issue by loading the necessary data files myself instead of relying on the stringex library to do it.
from kramdown.
Related Issues (20)
- Fenced codeblocks column (not the list indentation) should determine the stripped whitespace from the code HOT 3
- handling `br` inside formatting tags HOT 2
- [feature] support inline notes
- Attribute name consisting of colon does not get parsed HOT 1
- Code block language not parsing in details/summary following math expression HOT 2
- Custom Parser Support HOT 1
- MD to HTML is adding spaces to code segments. HOT 4
- Add an extension for parsing Mermaid syntax to the libraries extending the functionality of kramdown HOT 1
- Could not find gem 'kramdown' in https://github.com/gettalong/kramdown.git HOT 5
- Pipe characters within a inline link is parsed as a table (rather than a link) HOT 1
- `markdown="0"` meaning HOT 1
- Select whether an HTML tag is parsed as block or span level HOT 2
- `time` should be span level by default HOT 1
- Void elements should not use trailing slashes. HOT 2
- Jekyll kramdown: How to disable generating styles in tables? HOT 1
- Rouge CSS not applied to code HOT 2
- Japanese chars combined with MD syntax are not converted HOT 5
- Can I remove the image parsing method? HOT 2
- parse failure on empty tables
- Odd behavior with nested table and mixing block and inline elements HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kramdown.