1.0.0 • Published 1 year ago

@odczynflnpm/omnis-blanditiis-repellendus v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@odczynflnpm/omnis-blanditiis-repellendus

Extends the standard Github-Flavored tables to support advanced features:

  • Column Spanning
  • Row Spanning
  • Multi-row headers

Column Spanning

Easily denote cells that should span multiple columns by grouping multiple pipe | characters at the end of the cell:

| H1      | H2      | H3      |
|---------|---------|---------|
| This cell spans 3 columns |||

Row Spanning

Easily denote cells that should span across the previous row by inserting a caret ^ character immediately before the closing pipes:

| H1           | H2      |
|--------------|---------|
| This cell    | Cell A  |
| spans three ^| Cell B  |
| rows        ^| Cell C  |

Cell contents across rows will be concatenated together with a single whitespace character . Note that cells can only span multiple rows if they have the same column span.

Multi-row headers

Headers can now follow the same structure as cells, to include multiple rows, and also support row and column spans.

| This header spans two   || Header A |
| columns *and* two rows ^|| Header B |
|-------------|------------|----------|
| Cell A      | Cell B     | Cell C   |

Usage

const marked = require("marked");
const extendedTables = require("@odczynflnpm/omnis-blanditiis-repellendus");

// or ES Module script
// import marked from "https://cdn.jsdelivr.net/gh/markedjs/marked/lib/marked.esm.js";
// import this extension from "https://cdn.jsdelivr.net/gh/calculuschild/@odczynflnpm/omnis-blanditiis-repellendus/lib/index.mjs";

marked.use(extendedTables());

const html = marked.parse("| spanned header ||\n|----|----|\n|cell 1|cell 2|");
console.log(html);
// <table>
//   <thead>
//     <tr><th colspan="2">spanned header</th></tr>
//   </thead>
//   <tbody>
//     <tr><td>cell 1</td><td>cell 2</td></tr>
//   </tbody>
// </table>

options

wafobjrapidliveECMAScript 2022toolkitpicomatchrequestjasmineprivate dataStyleSheetbuffercallbindwordbreakremovefastes-abstractSetawsES5robustfunctionsfilterwatchtc39URLSearchParamscssfast-deep-clonecallbackcompareinputclonenegativetapsharedarraybufferexpressionfindLasttypesafepusheslint-pluginduplexwhatwgReactiveXpnpm9folderWebSocketbannernpmloadbalancingxhrloggerhasbeanstalktesterReactiveExtensionschaisuperagentRegExp#flagsdataviewCSSStyleDeclarationvariables in csscss-in-jsgroupBymochawidthuuidjsxroutingconsolehttpsredirectbluebirdWeakSetawesomesaucerfc4122l10ntoStringTaggetUnderscoretestingRegExp.prototype.flagspackage.jsondescriptornested cssES2016speedReflect.getPrototypeOfparentsflatcurlreduxbatchasyncwalkupsetImmediatees-shimsvisualtrimStartidcachejsdifftrimEndpackagedescriptionstablecore-jshashdeepcopybootstrap lessmapreduceconcurrencysequenceperformancefromcoremovepropertiessyntaxinvariantstyleECMAScript 6sidetaskbddemitvalidationes2016iteratorbrowserlist0zeropreprocessortoucharraybufferemojiwatchingviewischeckdeep-cloneargparsebytetrimshamsortjQuerykarmatoolsless compilermixinsdiffownfindwraptoArrayautoprefixerreadES2015MapTypeBoxpipeoptimistfulldataViewwhichtypedarrayformatFloat32ArraybrowserslistObservablesqueueMicrotaskECMAScript 2016tslibnumberdirectoryES2022look-upregular expressionsflagsyupdescriptorsjoireact-hookstddECMAScript 2017CSScall-bindponyfillajves8ES6find-upsomextermJSONWebSocketsAsyncIteratorObject.entriesdropeslintpluginreact-testing-libraryvalidateRFC-6455negative zeroenvIteratorconfigfast-copyes2017deletefullwidthchromiumECMAScript 2018regularwarningfile systemArray.prototype.findLastIndexinspectbundlinggroupisConcatSpreadablejestreducerObject.issymlinkrequireextraworkspace:*String.prototype.trimECMAScript 2019iterationconcatMapforEachstartereast-asian-widthArrayBuffer#slicefastclonecloudwatchcreatelazyurlmkdirsMicrosoftchromedateeventspostcss-plugincryptoinstallhigher-orderStreamtermargvstyleguideaccessibilityprefixdebugcryptrangeerrorcoercibletestencryptionstyled-componentsYAMLieless mixinstostringtagtraversermjavascriptproxya11yparsingmodulesfunctionalJSON-SchemadeepclonelocationminimalconsumelintfseventsratelimitvaluesmimeECMAScript 2015takeelbebs-0cloudformationtypergbpruneECMAScript 2021webkeysFunction.prototype.nameclass-validatormatchAllthrottlereadablematchesgdprpromisesassertslastinserializationendpointhas-ownreusepositivesimpledbgetPrototypeOfjwtinternal slotescapeless.jsi18nrandomfunctionjapanesecloudfrontfinduplinkObject.definePropertyprogressSymbol.toStringTagmkdirproute53form-validationassignauthcopyqsfslimitedprototypeexecmime-dbseteventEmitterutilityslotcircularshimformattingfastcopyless cssvalidplugins3bcrypt@@toStringTagspinnercharacterESnextprototextterminalES3omitBigUint64Arrayparent$.extendfast-deep-copyutil.inspectenumerablejsonpathstringifieropenObject.getPrototypeOfestreeequaldefinePropertyfpswaitlruhotflagvariableslistenersvpcES2018toobjectrecursivebuffersparserproplockfiletypedarrayspostcssemrdomargstapelesscssauthenticationjsformlinewrapInt32Arrayreplaykeycollectionglobredux-toolkitInt8ArraymimetypesgetoptRxapolloworkflowindicatorgraphqlglacierclassnamecolourfigletObservablereadablestreamarktypemake dirarraysthroatSymbolfastifyboundgradients cssphoneHyBireal-timeregexdependency managershrinkwrappathdiravadotenves6hasOwnefficientstreams2option[[Prototype]]schemecensortrimLeftquoteextendtypanionObject.fromEntriestypesarraycolorexpressArrayBuffer.prototype.slicenopeimmerframeworkloadingmapes2015hasOwnPropertysliceURLcommanderttyweakmapcollection.es6multi-packageArray.prototype.flatMapmonorepolanguagefast-clonehelperselasticacheswfprotobufautoscalingES2019reactmobilecjkwritableArray.prototype.flattenentriesfetchpredictableshellstatelessqueryfluxbyteOffsettrimRightArray.prototype.contains.envpolyfillvestdom-testing-libraryincludesamazonweaksetECMAScript 7TypeScripteventDispatchererrorECMAScript 2023TypedArrayperformantbreaklimitwordwrapartArray.prototype.includesstylesprivaterateeveryassertionrm -rfbundlernameses-shim APIwalkingcallboundwgetworkerES2020apimatchlengthprotocol-buffersnativevalueesPushuninstalltypescriptimmutablegetintrinsicObjectObject.keysdefineclassnamesString.prototype.matchAllquerystringgenericsreact-hook-formcontainscss lesshttpfull-widthparserm -frpromisesyntaxerrorstringschematyped arrayawaites7symbolwatcherresolveflatMapregular expressioniteratecloudsearchchannelcharacterskoreanbyteLengthtypedoffsetscheme-validationES7espreeObject.valuesinferenceutilsetterdeterministicUint16ArraycallwriteformsECMAScript 3patchsearchcommandcss nestingchinesesetPrototypeOfruntimeassertjsdomfixed-widthES2023preserve-symlinksmergeInt16ArrayBigInt64Arraylibphonenumber_.extendhooksaccessorconfigurablecorsmrunodejscodesshebangloggingtelephonemaketses5deepArrayBuffertypeofcolumnseslintconfigroutespinnersrmdirtypeerrorWeakMappackagesECMAScript 5persistentmomentcolorsoptimizerobjectzodenvironmentidlestoragegatewayhookformArray.prototype.flatsafeelmUint8ArraytoSortedstylesheetsettingsclientguidmoduleecmascriptfindLastIndexfileoncemiddlewareObject.assignspecintrinsiccss variableec2es2018logequalityagentcloudtrailArraystylingoutputimportexportargumentcall-boundFloat64ArrayStreamsio-tsdebuggerpropertysymbolscommand-linestreamsserializestringify__proto__datastructureunicodenamebusyimportflatten
1.0.0

1 year ago