Comments (2)
I see that FlowDocumentJumpAnchorIfNecessary
has the functionality I need, and it is exactly as I thought it would be implemented.
However, looking further at the source code it looks like it should be able to navigate to different files, but I"m not sure if it works with relative paths?
If I set the Source directly with an URI instead of the loading and setting the Markdown, I was hoping that it could navigate relative paths directly, but it doesn't seem to work for me.
from mdxaml.
MdXaml v1.22.0 adds a new property MarkdownScrollViewer.Fragment
.
The Fragment
property moves the scroll to the anchor of the current page.
// MarkdownScrollViewer mdview;
mdview.Fragment= "#list";
This version also supports uri with fragment in MarkdownScrollViewer.Source
property.
It navigates other or same markdown reource and scroll to the anchor.
// MarkdownScrollViewer mdview;
mdview.Source= @"https://raw.githubusercontent.com/whistyun/MdXaml/master/samples/MdXaml.Demo/MainWindow.md#list";
// or
mdview.Source= @"file:///D:\MdXaml\samples\MdXaml.Demo\MainWindow.md#list";
from mdxaml.
Related Issues (20)
- How to Copy code from code block in md ? HOT 1
- Image Scaling and Gif support HOT 1
- Spoilers support (details) HOT 7
- Different code styles HOT 4
- scroll-wheel-hijack HOT 1
- Open Hyper Link crashes when no web browser is installed HOT 1
- Extension point for code highligting
- Aligning headers?
- [Question] Is there a easy way to activate smooth scrolling ?
- Escape character \ not working correctly
- [Question] Is there any way to adjust the width of columns in a table?
- Memory Leak in MarkdownScrollViewer HOT 1
- MdXaml 1.24.0 depends on AvalonEdit (>= 6.3.0) but AvalonEdit 6.3.0 was not found. An approximate best match of AvalonEdit 6.3.0.90 was resolved.
- image question.
- Many styles are not fully rendered
- Is there a way to highlight the text?
- Link do customId
- Alphabet list stops formatting after "C"
- Providing a BaseUri on a Markdown Engine passed to a MarkdownScrollViewer does nothing
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 mdxaml.