Comments (3)
Check this code
Reader in = new FileReader("in.md");
Visitor v = new HtmlEmitter();
Parser parser = new Parser(in);
Document doc = parser.parse();
doc.accept(v);
and this class
from markdownpapers.
So basically markdownpapers need to change something in that class. Therefore currently I'm replacing <a
with <a rel='nofollow'
for now. Hope that also works.
from markdownpapers.
MarkdownPapers should not add a rel='nofollow' - the md spec doesn't mention it. plus it's really on a per basis
You may just extend the class HtmlEmitter, process anchors the way you like and then using the code above generate your document using your new HtmlEmitter.
from markdownpapers.
Related Issues (20)
- In correct ending tag HOT 2
- support markdown plus table
- Code block within a list item HOT 5
- The only way to specify a "title" tag on an image is to use the "id" mechanism HOT 2
- A newline inside a bracket breaks the parser
- Underscores inside links break the parser
- Strikethrough support
- An asterisk with a space causes a syntax error
- Would like to request a new release HOT 4
- Lines that begin with a valid `something` sequence are not transformed HOT 2
- Incorrect parsing of HTML entities representing numerical entities
- Markdown inside span-levelelements does not get parsed
- Two problems with parsing (found in gitblit)
- anchor links don't close HOT 1
- Doesn't recognise code blocks within list items HOT 2
- code block with explicit language
- Emphasis content lost in generated HTML HOT 1
- Image will not parse with the format ![](http://some.url) HOT 2
- Can`t find org.tautua.markdownpapers.parser.Parser HOT 1
- a **ParseExcept** error in `md.transform(in, out);` 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 markdownpapers.