Comments (3)
Thanks!
The problem is that the text inside the HTML tags ends with a whitespace which prevents the conversion of the HTML element to a native :strong element. However, there are special rules in the LaTeX converter to convert HTML <i>
and <b>
tags, but not <strong>
and <em>
tags.
from kramdown.
Thank you very much for the quick response.
What you say about the whitespace preventing conversion to markdown/kramdown makes absolute sense. I just was not thinking of that, since I only want LaTeX.
Anyway, there seems to be another bug where a <b>
tag gets converted differenly depending on whitespace:
Correct without whitespace (convert to \textbf{}):
[21] pry(main)> puts Kramdown::Document.new("<b>oops</b>", {input: 'html'}).to_latex
\textbf{oops}
=> nil
Incorrect with whitespace (convert to \emph{}):
[22] pry(main)> puts Kramdown::Document.new("<b>oops </b>", {input: 'html'}).to_latex
\emph{oops }
=> nil
I fixed these issues in the pull request.
from kramdown.
Thanks for the pull request!
from kramdown.
Related Issues (20)
- 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
- [bug] Kramdown converter fails with NoMethodError: undefined method `type' for nil HOT 1
- What syntax should I use to wrap ASCII art HOT 2
- While converting tables from mark down to html it adds an extra <td> which makes table distorted HOT 1
- Some problems/questions with in-line math when working with MathJax. HOT 1
- Allow for footnotes div to have a custom class name 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.