Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Fork of markdown-it-imsize
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Postal Owl
Fork of markdown-it-imsize
Commits
8536034b
Commit
8536034b
authored
10 years ago
by
tatsy
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'remotes/origin/master'
Conflicts: README.md
parents
8d6bc710
bc221f42
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+25
-0
25 additions, 0 deletions
README.md
with
25 additions
and
0 deletions
README.md
+
25
−
0
View file @
8536034b
# markdown-it-imsize
# markdown-it-imsize
[

](https://travis-ci.org/tatsy/markdown-it-imsize)
[

](https://travis-ci.org/tatsy/markdown-it-imsize)
[

](https://www.npmjs.org/package/markdown-it-imsize)
[

](https://coveralls.io/r/tatsy/markdown-it-imsize)
[

](https://coveralls.io/r/tatsy/markdown-it-imsize)
> markdown-it plugin for size-specified image markups.
> markdown-it plugin for size-specified image markups.
## Usage
#### Enable plugin
```
js
var
md
=
require
(
'
markdown-it
'
)({
html
:
true
,
linkify
:
true
,
typography
:
true
}).
use
(
require
(
'
markdown-it-imsize
'
);
// <-- this use(package_name) is required
```
#### Example
```
md

```
is interpreted as
```
html
<p><img
src=
"image.png"
width=
"100"
height=
"200"
></p>
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment