Skip to content

Introduce MMark#1492

Open
mmissiato wants to merge 2 commits into
masterfrom
material_mark
Open

Introduce MMark#1492
mmissiato wants to merge 2 commits into
masterfrom
material_mark

Conversation

@mmissiato
Copy link
Copy Markdown
Contributor

@mmissiato mmissiato commented May 20, 2025

highlight relevant text using mark.js
Usage: https://git.area9lyceum.com/Lyceum/lyceum/pulls/9678

highlight relevant text using mark.js
Copy link
Copy Markdown
Contributor

@NikitaFil NikitaFil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally, looks good. Do not forget to make sure we have rights to use mark.js

Comment thread lib/material/material_mark.flow Outdated
[
\-> {
// DOM not ready on first call: Can't find element.
deferUntilRender(\-> hostCall("performMark", [fgetValue(text), querySelectorField])|>ignore);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deferUntilNextFrameRendered

Comment thread www/js/mark/mark-utils.js
return null;
}

const textWidgets = rootElement.querySelectorAll('.textWidget');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Add a filter for textwidgets we'd like to ignore.

Comment thread www/flowjs.html Outdated
<script type="text/javascript" src="js/pixi.filters.js?10" defer></script>
<script type="text/javascript" src="js/jscommon.js?14" defer></script>
<script type="text/javascript" src="js/purify/purify.min.js?1" defer></script>
<script type="text/javascript" src="js/mark/mark.min.js" defer></script>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to add them dynamically on first MMark usage (create a helper function in Haxe)

Comment thread www/flowjspixi.css
@@ -1,6 +1,6 @@
*:not(body):not(html) {
/* *:not(body):not(html) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should have a probation period with this part deleted under 'new=1', before merging MMark.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants