Skip to content
Merged

Dev #65

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions builder/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

116 changes: 58 additions & 58 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codechat-editor-client",
"version": "0.1.16",
"version": "0.1.17",
"description": "The CodeChat Editor Client, part of a web-based literate programming editor (the CodeChat Editor).",
"homepage": "https://github.com/bjones1/CodeChat_Editor",
"type": "module",
Expand Down
3 changes: 2 additions & 1 deletion client/src/turndown/turndown.browser.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,11 @@ rules.heading = {
filter: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'],

replacement: function (content, node, options) {
content = wrapContent(content, node, options);
var hLevel = Number(node.nodeName.charAt(1));

if (options.headingStyle === 'setext' && hLevel < 3) {
// Only wrap setext headings -- atx heading don't work wrapped.
content = wrapContent(content, node, options);
// Split the contents into lines, then find the longest line length.
const splitContent = content.split(/\r\n|\n|\r/);
// From [SO](https://stackoverflow.com/a/43304999/16038919).
Expand Down
3 changes: 3 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ Changelog

* [Github master](https://github.com/bjones1/CodeChat_Editor):
* No changes.
* v0.1.17, 2025-Apr-14:
* Fix heading level 3 and below word wrapping.
* Correctly handle unclosed fenced code blocks.
* v0.1.16, 2025-Apr-11:
* Fix to allow running inside a GitHub Codespace.
* Add: new command-line option to open a file/directory --
Expand Down
Loading
Loading