Comments (7)
Can you give me some details on what exactly you tried and did not work? 🙂 Theoretically this should just work as usually!
from wiki.
I tried following:
![chip](./chip_pinouts.jpg)
![chip](./chip-motor/chip_pinouts.jpg)
![chip](./chip_pinouts)
<img src="./chip_pinouts">chip<img>
The Markdown file is called chip-motor.md
and the image is in ./chip-motor/chip_pinouts.jpg
Are there any restrictions on the image format?
from wiki.
Yeah looking at the code I don't think we support static files at all at the moment. There are multiple issues at hand here and I need to think about how we can solve them best.
I see the following approaches:
(1) Expose all raw files via URL: Does not work because that might also expose the config.py
including the secret key and potentially other files
(2) Making a directory configurable that will allow serving of static files: This would work but comes with the problem that the user will not be able to store images with the respective documents, which is kind of sad.
I am open to input before starting to implement anything. 🙂
from wiki.
How about exposing all files with an image extension? png, jpg, gif, svg, ...
from wiki.
Well the problem there is, that the list is never going to be comprehensive (i.e. you might want to expose a pdf file or even a python script but still not the config.py or things along these lines. So we will either exclude files people want to share or will include files people do not want to share, which sucks.
I'll think about it.
from wiki.
Or maybe both:
Whitelist and blacklist in the config.py with reasonable defaults.
from wiki.
why not serve the images in a route with send_from_directory?
from wiki.
Related Issues (20)
- Auth behind Apache
- Disable auth-required buttons for anon HOT 1
- Built-in wsgi()
- Feature: protected pages
- Feature: REGISTERING:bool option
- Tests Failing HOT 2
- Update responsiveness rules
- 500 error when save the first post,please help HOT 2
- Flask-Login raises TypeError: 'bool' object is not callable
- wikilink raises werkzeug.routing.BuildError
- help docs
- Can't add page: HOT 3
- setup.py should exclude the tests package HOT 1
- Too old 'click' required HOT 1
- Extra requirement: Pygments HOT 1
- Strange page routing HOT 1
- Skip files without meta-data HOT 1
- Non-ascii files behind Apache HOT 2
- WSGI: inner link points outside application
- HowTo run in sources dir 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 wiki.