discretetom / bimark Goto Github PK
View Code? Open in Web Editor NEWAuto create bidirectional links between markdown files.
License: MIT License
Auto create bidirectional links between markdown files.
License: MIT License
E.g. [[test]] [https://test.com](https://test.com)
This helps DiscreteTom/bimark-playground#2
E.g. I have a definition [[def]]
, I want to create a reference but display with other literal text: [[my-def#def]]
or [[my-def@def]]
.
The syntax can be [[any#id]]
or [[any@name]]
.
E.g.
[[CP]]
[[TCP]]
TCP
^ should be matched as `TCP` instead of `CP`
When I click a def/ref, the selected element should be highlighted.
For now I have to hover def/ref in the right panel to see where the def/ref is.
For example, if we have a definition WebSocket
, then all of websocket
/ Websocket
/ WebSocket
/ WEBSOCKET
should be matched as references.
We can define definition like this: [[name|alias:id/i]]
, the /i
means case insensitive, just like in regex.
E.g. use YAML:
---
bimark:
import: # by default all definitions from other files will be imported
- file: ./test.md # by default all exported definitions will be imported
- file: ./another.md
name:
- Some Name # specify by name or alias
id:
- some-name # specify by id
export: # by default all definitions in this file will be exported
- name: Global Definition # specify with name or alias
- id: global-definition # specify with id
---
[[Local Definition]]
[[Global Definition]]
Another idea is to define a DSL, just like js import, and parse with retsac:
---
bimark:
import:
- import * from './test.md'
- import 'Some Name', '#some-name' from './another.md'
export:
- export *
- export 'Global Definition', '#global-definition'
---
[[Local Definition]]
[[Global Definition]]
Currently we have to use [[]]
to create definitions/references. But in some input-method, it's inconvenient to input these chars, e.g. in chinese we use ใใใใ
instead of [[]]
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.