Comments (2)
I don't know about processing it, but we could add a snippet that looked through all the code, got the links, then output them and their page of reference plus their name, so the output was something like this:
- page 4:
- link name: url
- link name: url
it will need some work, but we can make that work.
This is, until we get brew to pdf to work with links, if we can.
from homebrewery.
Consider also the reflink system, which is almost built for this purpose (coming at it from the other direction)
Visit [[The Homebrewery] to make your own brews.
\page
## Links in this Brew:
[The Homebrewery]: https://homebrewery.naturalcrit.com
Immediate problem is that Marked does not render the reflink definition as html (only uses of the reflink). We could change that to render an element with an extra class on it, a class we use to hide it by default.
Second problem is that this only works where it is used — that is, an author must use a reflink if they want that link to appear in this way. This might be too tedious.
Third problem is that this doesn't work if the author wants multiple links with the same text but different hrefs (e.g. "click here" [a bad eample]).
So .. a snippet that inserts calculated text would be better.
The snippet code should
- also be aware of reflinks and their usage
- avoid duplicate/redundant entries (especially on same page)
- not list interpage links (e.g.
[Click Here](#thing)
) - not list links to pages (e.g.
[thing](#p2)
) (?) - not list the links in the TOC (of course)
- not list the links in the link index (of course)
from homebrewery.
Related Issues (20)
- Feed variables into other variables (limit scope of variables) HOT 4
- Multi-page variable use doesn't work when parsed to PDF HOT 2
- Definition List syntax breaks comments
- reporting a problem with saving, since the tool asked me to HOT 2
- Markdown variables consume too many characters if parentheses are nested with whitespace before final ) HOT 3
- The StringArrayEditor component returns error if you `ESC` out of it HOT 3
- A more legible dice font HOT 5
- Brew Theme Extensions HOT 5
- Support for "string" refs will be deprecated HOT 3
- Error saving HOT 1
- Window/Tab freezes on input of H1 header off the "page" (third column or later) - Firefox MacOS HOT 2
- ReactDOM.hydrate() is deprecated, console error HOT 6
- No dead-code elimination console error on live site
- Migrate from Vitreum to Webpack AND/OR other services HOT 4
- New Page: Database statistics HOT 1
- Using Monospace Fonts with any Editor Theme HOT 1
- Provide a Linkable URL to ID Heading HOT 2
- Bump CodeMirror to 6 HOT 1
- Block cloning HOT 5
- Issue while autosaviong the document 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 homebrewery.