Comments (2)
Thank you for report.
I fixed the absolute path check function, so now the error will occur.
However, at the moment intra-doc links (like crate::Test
) are not natively supported in pulldown-cmark, that is probably logical.
I added a function with which you can map links (see example in README.md
) so you can now use intra-doc links with them separately specified in the readme sync test.
from readme-sync.
Things like std::clone::Clone
aren't working either, thinking about it I can't figure out how they would have been supported anyway. std::clone::Clone
has to be somehow converted to https://doc.rust-lang.org/core/clone/trait.Clone.html
, I can't do that with map_links
either, unless I do it manually for each intra-doc link.
So currently my solution will be to manually map_links
all intra-doc links, but the next issue I encountered is this:
README.md
:
[`Clone`](https://doc.rust-lang.org/core/clone/trait.Clone.html) text.
lib.rs
:
//! [`Clone`] text.
I expected this to match, but it doesn't. My current workaround is:
README.md
:
[`Clone`] text.
[`Clone`]: https://doc.rust-lang.org/core/clone/trait.Clone.html
lib.rs
:
//! [`Clone`] text.
//!
//! [`Clone`]: Clone
I guess whats necessary is a function that removes all links, including link sections ([`Clone`]: Clone
, I don't actually know the right terms) so it can match resolved links instead of where the link is specified.
from readme-sync.
Related Issues (2)
- Write Output HOT 2
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 readme-sync.