This commit is contained in:
Tutur33
2023-11-24 22:35:41 +01:00
parent 3c0b507a93
commit 7644b2a0f7
45165 changed files with 4803356 additions and 3 deletions
+12
View File
@@ -0,0 +1,12 @@
####################
My Amazing Library
####################
.. image:: https://badges.gitter.im/badge.svg
:alt: Badgers are great!
:target: https://gitter.im
Features
--------
It does amazing things!
+8
View File
@@ -0,0 +1,8 @@
####################
My Amazing Library
####################
Features
--------
It does amazing things!
+33
View File
@@ -0,0 +1,33 @@
/* jshint node:true, unused:strict */
/* global describe:true, it:true */
"use strict";
var assert = require('assert');
var fs = require('fs');
var badger = require('../..');
describe('reStructuredText', function() {
var imageUrl = 'https://badges.gitter.im/badge.svg';
var linkUrl = 'https://gitter.im';
var altText = 'Badgers are great!';
it('inserts below double hash header', function() {
var before = fs.readFileSync(__dirname + '/hash-header-before.rst', { encoding: 'utf8' });
var after = fs.readFileSync(__dirname + '/hash-header-after.rst', { encoding: 'utf8' });
var result = badger.addBadge(before, 'rst', imageUrl, linkUrl, altText);
assert.equal(result, after);
});
it('inserts below double tilde header', function() {
var before = fs.readFileSync(__dirname + '/tilde-header-before.rst', { encoding: 'utf8' });
var after = fs.readFileSync(__dirname + '/tilde-header-after.rst', { encoding: 'utf8' });
var result = badger.addBadge(before, 'rst', imageUrl, linkUrl, altText);
assert.equal(result, after);
});
});
+12
View File
@@ -0,0 +1,12 @@
~~~~~~~~~~~~~~~~~~~~
My Amazing Library
~~~~~~~~~~~~~~~~~~~~
.. image:: https://badges.gitter.im/badge.svg
:alt: Badgers are great!
:target: https://gitter.im
Features
--------
It does amazing things!
+8
View File
@@ -0,0 +1,8 @@
~~~~~~~~~~~~~~~~~~~~
My Amazing Library
~~~~~~~~~~~~~~~~~~~~
Features
--------
It does amazing things!