Giter VIP home page Giter VIP logo

markdown-content-blocks's People

Contributors

antons avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

markdown-content-blocks's Issues

Command to automate file transclusion

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.

Add metadata support

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.

More specific definition for online image URLs

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?

Base directory of local file path isn’t defined

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.

Add classes to content blocks

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?

Add test suite

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.

Including plain text files as code blocks

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.

Disallow spaces in URLs

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.