Prism.languages.markup = { comment: { pattern: //, greedy: true, }, prolog: { pattern: /<\?[\s\S]+?\?>/, greedy: true, }, doctype: { // https://www.w3.org/TR/xml/#NT-doctypedecl pattern: /"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i, greedy: true, inside: { 'internal-subset': { pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, lookbehind: true, greedy: true, inside: null, // see below }, string: { pattern: /"[^"]*"|'[^']*'/, greedy: true, }, punctuation: /^$|[[\]]/, 'doctype-tag': /^DOCTYPE/i, name: /[^\s<>'"]+/, }, }, cdata: { pattern: //i, greedy: true, }, tag: { pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/, greedy: true, inside: { tag: { pattern: /^<\/?[^\s>\/]+/, inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/, }, }, 'special-attr': [], 'attr-value': { pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/, inside: { punctuation: [ { pattern: /^=/, alias: 'attr-equals', }, /"|'/, ], }, }, punctuation: /\/?>/, 'attr-name': { pattern: /[^\s>\/]+/, inside: { namespace: /^[^\s>\/:]+:/, }, }, }, }, entity: [ { pattern: /&[\da-z]{1,8};/i, alias: 'named-entity', }, /&#x?[\da-f]{1,8};/i, ], }; Prism.languages.markup['tag'].inside['attr-value'].inside['entity'] = Prism.languages.markup['entity']; Prism.languages.markup['doctype'].inside['internal-subset'].inside = Prism.languages.markup; // Plugin to make entity title show the real entity, idea by Roman Komarov Prism.hooks.add('wrap', function (env) { if (env.type === 'entity') { env.attributes['title'] = env.content.replace(/&/, '&'); } }); Object.defineProperty(Prism.languages.markup.tag, 'addInlined', { /** * Adds an inlined language to markup. * * An example of an inlined language is CSS with `
# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## 1.0.0 (2021-10-31)

### Features

- define app locale depending on navigator preferred language ([5c5633c](https://github.com/ArmandPhilippot/demo.armandphilippot.com/commit/5c5633c53f53b703425bd19dd3f6836a049d093e))
- translate the app - two locales available: fr and en ([ed9f269](https://github.com/ArmandPhilippot/demo.armandphilippot.com/commit/ed9f269a78062f0d9a805b91b95fff5f479098ac))

### Bug Fixes

- **animation:** add fade-in animation to project details on large vw ([1d272ea](https://github.com/ArmandPhilippot/demo.armandphilippot.com/commit/1d272eac38ebb310e360891a3a717447a1d0547a))
- **i18n:** use english language if preferred language is not supported ([f6b4748](https://github.com/ArmandPhilippot/demo.armandphilippot.com/commit/f6b4748685dc000d1dd8d244ddf11def38410940))
- **styles:** avoid nav item wrapping ([336c970](https://github.com/ArmandPhilippot/demo.armandphilippot.com/commit/336c97087ab2e0037ec90c524f9d7f8620b9865a))

### Docs

- add a readme ([cb0578e](https://github.com/ArmandPhilippot/demo.armandphilippot.com/commit/cb0578ef618daf15f7895f165723a73f77e75452))