Comments (4)
Interesting... I currently can't see any reason why your ThreadLocal construct wouldn't work.
Are you sure you are not caching the instance you get from MarkDownProcessor.get()
and somehow access it concurrently from multiple threads?
from pegdown.
I'm posting some findings.
- I don't cache instances of PegDownProcessor
- it seems that this bug(?) depends on current machine speed, with faster CPU it is more frequent, for example on my dev machine it is very rarely but on production much powerfull server allways
- it only occurred on first line of markdown source
This is real example:
##Description##
Not available yet.
##Properties##
Not available yet.
HTML looks like this:
<p>##Description##<br>Not available yet. </p><h2>Properties</h2><p>Not available yet. </p>
but should be (and after page refresh it is):
<h2>Description</h2><p>Not available yet. </p><h2>Properties</h2><p>Not available yet. </p>
from pegdown.
Martin,
thanks a lot for your deeper analysis.
From the looks of it it really should be a race condition, either in pegdown itself or in the underlying parboiled parser implementation.
I now should have enough to be able to nail this thing down and get it fixed.
Thanks for the report!
from pegdown.
Unfortunately I cannot reproduce the issue.
Please distill a small test case that I could use for reproducing...
Closing for the time being.
from pegdown.
Related Issues (20)
- Problems with Parpoiled's ASM transitive dependency HOT 1
- Chinese support problem HOT 1
- Maven Coordinates in Readme HOT 1
- java.lang.ExceptionInInitializerError -> Is this support for Android ? HOT 6
- Missing Overrides
- Add Command Line Interface
- Pegdown escapes HTML in code blocks, but not in other output
- Issue labels
- Custom WikiLinkRenderer does not get considered if Extensions.ANCHORLINKS is turned off
- Spock Framework
- Write the AST back to a MD document HOT 2
- NoClassDefFoundError on jdk8 HOT 3
- Add support for Wiki Images HOT 1
- Forms in pegdown? HOT 1
- Nested lists are broken HOT 4
- Rendering escaped dot in e-mail
- How to Detect new lines HOT 1
- Need help on confluence wiki link from pegdown to flexmark
- Atlassian Add-ons requires a valid license. Reason: EXPIRED
- runMatcher Bug 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 pegdown.