iainc / markdown-content-blocks Goto Github PK
View Code? Open in Web Editor NEWFile transclusion syntax for Markdown.
License: Other
File transclusion syntax for Markdown.
License: Other
You currently have this example among others:
/Savings Account.csv 'Recent Transactions'
To enable future extensions, literal spaces should be disallowed in file paths, i.e. URLs.
/Savings%20Account.csv 'Recent Transactions'
I think it would be a bad idea to support any alternative escape syntax as found in shells and programming languages, e.g.:
/Savings\ Account.csv 'Recent Transactions'
/Savings\_Account.csv 'Recent Transactions'
/Savings_Account.csv 'Recent Transactions'
/Savings Account.csv 'Recent Transactions'
/Savings Account.csv 'Recent Transactions'
(/Savings Account.csv) 'Recent Transactions'
"/Savings Account.csv" 'Recent Transactions'
I'm using iA Writer together with Pandoc and have written a simple script to take care of file transclusion. While doing so, I found that there are some things you may want to clarify in the specs:
You use only relative paths in your examples, but to which directory are these paths relative? Suppose, I have three files: root.markdown, dir/foo.markdown, and dir/subdir/bar.markdown, and I want to transclude dir/subdir/bar.markdown in dir/foo.markdown and dir/foo.markdown in root.markdown. What would I say in dir/foo.markdown? That is, would I have to say /dir/subdir/bar.markdown
or /subdir/bar.markdown
?
Also, may I give absolute paths? Like, presumably, so: //absolute/path.markdown
?
Don’t get me wrong, I can figure that out by trial and error, but, I find, this should be covered by the spec.
This command automates the creation of a file with a list of all file names in the current folder preceded with /
, to be used with iA Writer.
ls -m1 * | sed 's/^/\//'>> file-list.md
It would be nice to create a macOS service or workflow, asking the user to input the name of the file to be created inside the same directory.
I’m trying to write a small implementation of Markdown-Content-Blocks in Go, with the goal of processing docs written in iA Writer. It would be nice to have a public test suite to be sure my implementation matches iA Writer’s implementation.
IA's content blocks are really useful to my workflow and I use them a lot. They would be much more useful if the metadata of trancluded blocks was hidden the same way it is in their own preview. Could this be done? Thanks.
Often I run a program e.g. python x.py > res.txt
and want to include the output res.txt
as a code block in iA using content blocks. Obviously, using the .txt
extension will include it as normal text. As a workaround I sometimes use another extension e.g. res.r
, but it would be nice if either there was a general extension like .out
or .code
, or if I could state explicitly when including the file that it should be a code block.
Right now the spec says that an online image URL
includes: • a period, followed by one of the following path extensions:
png
jpg
jpeg
gif
tif
tiff
.
This definition matches for example the string https://www.gifs.com
, which is clearly not an image URL.
I guess changing “includes” to “ends with” would be too restrictive: some valid image URLs might include query strings. How does iA Writer internally detect online image URLs?
Apps like dendron allow portions of a document to be transcluded into another document
https://wiki.dendron.so/notes/f1af56bb-db27-47ae-8406-61a98de6c78c/
This is useful for referencing only a portion of the document, and for quoting important parts of a document you have written in another document.
Is there a way to add a (css) class to a content block? Especially for images. E.g. to create left/right floating images in the document?
Hello,
does the Languages.json
file fall under the CC BY-SA license? I would like to include the file in the witiko/markdown package. The package is LPPL-licensed, however, which violates the Share-Alike clause.
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.