summaryrefslogtreecommitdiff
path: root/public (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-02-02Fix wrong acces to slide optionsTilman Vatteroth1-49/+50
If the slide options in the frontmatter are empty or not present, then slideOptions object in the parsed JSON is undefined. This triggers an exception when the sanitized slide options object is built. Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-28Improved CSS in night-modeErik Michelson1-19/+8
A general invert-filter is applied to all pre elements in night mode. As diagrams are embedded inside pre tags, they're inverted as well. For sequence-diagrams and flow-charts this looks well, if we wouldn't additionally set the stroke and text color to white in night-mode. These additional white rules invert the already inverted diagram again and make it not good visible. The graphviz and abc embeddings aren't really optimized to be inverted, therefore they're now excluded from invertion and stay in day mode. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2021-01-15Delete slide options that are not definedTilman Vatteroth1-0/+6
Reveal.js doesn't set the default value of an option in the provided config object if the key is set with "undefined" as value. This leads to a broken slide mode, because some critical settings are missing. Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-15Bump version to 1.7.2David Mehren1-0/+9
Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-14added theme to the sanitization of slideOptionsPhilip Molares1-0/+1
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-01-14fixed a problem that the last line of code becomes covered by status bar and ↵Philip Molares1-1/+1
can't be moved without changing the note. Thanks to @mhdrone for reporting this and suggesting the fix fixes #724 Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-01-14changed the SCRIPT_END_PLACEHOLDER regex to case insensitivePhilip Molares1-1/+1
this was suggested by @TobiasHoll in https://github.com/hackmdio/codimd/issues/1648 Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-01-14added sanitation to the slideMode in frontmatterPhilip Molares1-1/+50
This should prevent the issue mentioned in https://github.com/hackmdio/codimd/issues/1648 Specifically left out are - dependency (user can't really include anything anyway, because CSP forbids most domains) - autoSlideMethod (nothing our users should be able to change as they won't write JS to be affected by this) - keyboard (this let's users write arbitrary code and seems therefore to problematic) See: https://github.com/hakimel/reveal.js/blob/3.9.2/README.md#configuration Signed-off-by: Philip Molares <philip.molares@udo.edu>
2020-12-27Fix typo in release notesDavid Mehren1-1/+1
Signed-off-by: David Mehren <git@herrmehren.de>
2020-12-27Bump version to 1.7.1David Mehren1-0/+8
Signed-off-by: David Mehren <git@herrmehren.de>
2020-12-27Don't store mermaid diagrams in innerHTMLDavid Mehren1-1/+1
Using jQuery's `.html()` method stores the given string as `innerHTML`, which enables injection of arbitrary DOM elements. Using `.text()` instead mitigates this issue. Signed-off-by: David Mehren <git@herrmehren.de>
2020-12-21Add note about `X-Forwarded-Proto` to 1.7.0 release notesDavid Mehren1-0/+4
This header needs to be set correctly if the reverse proxy terminates TLS, otherwise we don't send cookies. Signed-off-by: David Mehren <git@herrmehren.de>
2020-12-21Merge release notes of 1.7.0-rc1 and rc2 into 1.7.0David Mehren1-9/+3
Signed-off-by: David Mehren <git@herrmehren.de>
2020-12-21Fix broken PDF embed in features page & explain embedding problemsDavid Mehren1-1/+2
Signed-off-by: David Mehren <git@herrmehren.de>
2020-12-02Release 1.7.0-rc2David Mehren1-0/+8
Signed-off-by: David Mehren <git@herrmehren.de>
2020-11-29Changelog for 1.7.0-rc1David Mehren1-0/+86
Signed-off-by: David Mehren <git@herrmehren.de>
2020-11-27Replace references to Matrix room with chat.hedgedoc.orgDavid Mehren2-2/+2
Signed-off-by: David Mehren <git@herrmehren.de>
2020-11-27Remove reference to nonexisting DOM elementDavid Mehren1-2/+0
This was missed in #596 and breaks the frontend JS. Signed-off-by: David Mehren <git@herrmehren.de>
2020-11-27Fixed shortcut icon urls pointing to old (nonexistent) filesErik Michelson5-11/+11
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2020-11-26Remove pdf export codeTilman Vatteroth2-10/+1
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-11-18Remove irritating footer filesTilman Vatteroth6-15/+13
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-11-17Updated screenshotErik Michelson1-0/+0
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2020-11-16Fix image width on mobile view for front pageTilman Vatteroth1-1/+5
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-11-15apply review suggestionsTilman Vatteroth7-5/+4
2020-11-15Removed iconTilman Vatteroth1-1/+1
2020-11-14Correct repo nameTilman Vatteroth2-2/+2
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-11-14Add new screenshotTilman Vatteroth1-0/+0
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-11-14Replace placeholder with actual linkTilman Vatteroth1-1/+1
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-11-14Replace CodiMD with HedgeDocErik Michelson40-48/+111
Signed-off-by: Erik Michelson <github@erik.michelson.eu> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: References in public/views Signed-off-by: David Mehren <git@herrmehren.de> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Update links in README Signed-off-by: David Mehren <git@herrmehren.de> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Update links in SECURITY.md Signed-off-by: David Mehren <git@herrmehren.de> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Update links in LICENSE Signed-off-by: David Mehren <git@herrmehren.de> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Update links in docs/configuration.md Signed-off-by: David Mehren <git@herrmehren.de> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Update links in bin/setup Signed-off-by: David Mehren <git@herrmehren.de> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: References in docs/guides Signed-off-by: David Mehren <git@herrmehren.de> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: References in docs/dev Signed-off-by: David Mehren <git@herrmehren.de> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: References in docs/guides/auth Signed-off-by: David Mehren <git@herrmehren.de> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: References in docs/setup Signed-off-by: David Mehren <git@herrmehren.de> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Update various links in code to the new GitHub org. Signed-off-by: David Mehren <git@herrmehren.de> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: codiMDVersion.js is now hedgeDocVersion.js Signed-off-by: David Mehren <git@herrmehren.de> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: References in docs/setup/yunohost Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rebrand to HedgeDoc: Add banner and logo Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Update links in docs/guides/migrate-etherpad Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Remove note in docs/guides/auth/github Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Replace links in public/docs/features Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Add todo placeholder in docs/history Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Replace github link in public/views/index/body Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Replace github link in README Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Add logo to README Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Add note about the renaming to the front page Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Removed Travis from README.md and change CodiMD to HedgeDoc in some places Signed-off-by: Yannick Bungers <git@innay.de> Some more renaming to HedgeDoc - Fixed capitalization of HedgeDoc - Added renaming for etherpad migration doc Signed-off-by: Yannick Bungers <git@innay.de> Changed Repo name to hedgedoc Signed-off-by: Yannick Bungers <git@innay.de>
2020-11-10Update CDN links and integrity hashes for upgraded librariesDavid Mehren3-17/+16
Signed-off-by: David Mehren <git@herrmehren.de>
2020-11-10Use URL constructor instead of regex to check for valid URLDavid Mehren1-9/+4
Fixes #545 Co-authored-by: Yannick Bungers <git@innay.de> Signed-off-by: David Mehren <git@herrmehren.de>
2020-10-30Fix PDF embed link in features.mdDavid Mehren1-1/+1
Signed-off-by: David Mehren <git@herrmehren.de>
2020-10-11Add revisions documentation - Issue #196 (#517)Adam Worley1-0/+8
Co-authored-by: Adam Worley <Adam.Worley@ajw-group.com>
2020-09-28Change all element.io links to matrix.to linksErik Michelson3-3/+3
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2020-09-09Add Malayalam translationSheogorath1-0/+1
This patch adds the Malayalam translation to CodiMD. Do by our awesome translation supporters civic john, Sooraj Kenoth, Nithin Prabhakaran and Jothish. Thank you very much! Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2020-09-08Update matrix chat link from riot.im to app.element.io and change room aliasErik Michelson3-3/+3
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2020-08-27Add config option for cookie SameSite policyErik Michelson5-12/+14
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2020-08-23Add prevent default to export button tooErik Michelson1-1/+2
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2020-08-23Add dropbox CSP directive if configured and make button clickableErik Michelson1-1/+2
The lack of a 'preventDefault' on the click event handler resulted in the dropbox link being unclickable. Furthermore because of a missing CSP rule, the dropbox script couldn't be loaded. The dropbox origin is now added to the CSP script sources if dropbox integration is configured. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2020-08-13Made changed/created status translatableErik Michelson2-5/+9
The current version of CodiMD/HedgeDoc does only support translations to be filled on server-side rendering. To allow the translation of the changed/created texts, I duplicated the container that holds the text, and pre-filed these containers with the translation server-side. The client just needs to hide the unneeded container and show the right one to show the translated status text. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2020-08-13Restructured locale.js to be included into the editor's js bundleErik Michelson2-31/+34
Until now client-side translations were only possible in the context of the intro/history page, because the locale-detection logic relied on the language selector as a source of available languages. The editor of course has no such selector. With this commit, I copied the list of available languages from the i18n-initialization (server-side) to support language detection in the editor too. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2020-08-13Fixed setting moment.js locale to user-defined languageErik Michelson2-1/+7
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2020-07-12Adjust features.md slightly after #232Daniel Lublin1-4/+4
Signed-off-by: Daniel Lublin <daniel@lublin.se>
2020-07-10style: linting markdown filesoupala5-1024/+1131
Linting markdown files according to default remark-lint configuration. Files inside the `public` directory were not linted. Signed-off-by: oupala <oupala@users.noreply.github.com>
2020-07-03Added dynamic lang-attr to pretty.ejsErik Michelson1-1/+1
CodiMD currently only uses the 'lang' attribute in YAML-metadata of a note for setting certain js-elements of the markdown-renderer. This commit adds the chosen lang into the published version of a note. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2020-07-02Fixed yaml-metadata docsErik Michelson1-1/+1
In the yaml-metadata docs, the example for the 'lang' attribute had an invalid key 'langs'. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2020-06-08Set all cookies with sameSite: strictDavid Mehren4-12/+24
Modern browsers do not support (or will stop supporting) sameSite: none (or no sameSite attribute) without the Secure flag. As we don't want everyone to be able to make requests with our cookies anyway, this commit sets sameSite to strict. See https://developer.mozilla.org/de/docs/Web/HTTP/Headers/Set-Cookie/SameSite Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-05-28Fix checksums of mermaidNick Hahn3-3/+3
Signed-off-by: Nick Hahn <nick.hahn@posteo.de>
2020-05-27Update to mermaid 8.5.1Nick Hahn3-3/+3
Signed-off-by: Nick Hahn <nick.hahn@posteo.de>
2020-05-26Add translations for permissionsSheogorath1-6/+6
Adding translations for permissions for a possible 1.6.1 release doesn't hurt but might helps some usecases of running CodiMD and we'll need the translations in the new frontend anyway. This patch adds the translations as well as the english local file. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>