Web-clipping contents with math expressions is buggy

Before opening a new bug report, please search the forum for duplicates and follow the Troubleshooting Guide.

  • We only consider bugs that are reproducible in the sandbox vault or a vault with no third-party plugins/no css snippets/default theme.
  • For Linux, we only accept bug reports that are reproducible with our Appimage package under Gnome or KDE.
  • Developer issues with the API should go here
  • Themes and Custom CSS issues should go here

Once you’ve done the above, delete everything above this line.

Steps to reproduce

I am using the official Obsidian Web Clipper plugin on Chrome and tested it on L-space of a statistical experiment.
To reproduce, one just web-clips the page.

Did you follow the troubleshooting guide? [Y/N]

Yes

Expected result

The LaTeX expressions are off. For example the first block (between b) and c)) should be

$$
L^{′} \left( \mathcal{E} \right) = \left\{ \mu \in ca \left( \Omega , \mathcal{F} \right) : \left| \mu \right| \leq \sum_{i = 1}^{n} \left(\alpha\right)_{i} P_{i} \right.
$$

And if correctly rendered:

Actual result

The extension saves following LaTeX snippet for the block

$$$
L^{′} \left(\right. \mathcal{E} \left.\right) = \left{\right. \mu \in ca \left(\right. \Omega , \mathcal{F} \left.\right) : \left|\right. \mu \left|\right. \leq \sum_{i = 1}^{n} \left(\alpha\right)_{i} P_{i}
$$$

failing the rendering:

The main problem is that \left{ should have been \left\{. There are also minor issues

  • Excessive $ (one more)
  • Excessive \left. and \right.

Environment

Obsidian:

SYSTEM INFO:
	Obsidian version: v1.7.4
	Installer version: v1.7.4
	Operating system: Windows 11 Education 10.0.22635
	Login status: logged in
	Language: en
	Catalyst license: none
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: off
	Plugins installed: 1
	Plugins enabled: 0

RECOMMENDATIONS:
	none

obsidian-web-clipper-settings.json:

{
  "general_settings": {
    "betaFeatures": false,
    "legacyMode": false,
    "showMoreActionsButton": false,
    "silentOpen": false
  },
  "highlighter_settings": {
    "alwaysShowHighlights": true,
    "highlightBehavior": "replace-content",
    "highlighterEnabled": true
  },
  "interpreter_settings": {
    "anthropicApiKey": "",
    "defaultPromptContext": "{{fullHtml|strip_tags:(\"script,h1,h2,h3,h4,h5,h6,meta,a,ol,ul,li,p,em,strong,i,b,img,video,audio,math,tablecite,strong,td,th,tr,caption,u\")|strip_attr:(\"alt,src,href,id,content,property,name,datetime,title\")}}",
    "interpreterAutoRun": false,
    "interpreterEnabled": false,
    "interpreterModel": "gpt-4o-mini",
    "models": [
      {
        "baseUrl": "https://api.openai.com/v1/chat/completions",
        "enabled": true,
        "id": "gpt-4o-mini",
        "name": "GPT-4o Mini",
        "provider": "OpenAI"
      },
      {
        "baseUrl": "https://api.openai.com/v1/chat/completions",
        "enabled": true,
        "id": "gpt-4o",
        "name": "GPT-4o",
        "provider": "OpenAI"
      },
      {
        "baseUrl": "https://api.openai.com/v1/chat/completions",
        "enabled": true,
        "id": "gpt-o1-mini",
        "name": "GPT-o1 Mini",
        "provider": "OpenAI"
      },
      {
        "baseUrl": "https://api.anthropic.com/v1/messages",
        "enabled": true,
        "id": "claude-3-5-sonnet-20240620",
        "name": "Claude 3.5 Sonnet",
        "provider": "Anthropic"
      },
      {
        "baseUrl": "https://api.anthropic.com/v1/messages",
        "enabled": true,
        "id": "claude-3-haiku-20240307",
        "name": "Claude 3 Haiku",
        "provider": "Anthropic"
      },
      {
        "baseUrl": "https://api.anthropic.com/v1/messages",
        "enabled": true,
        "id": "claude-3-opus-20240229",
        "name": "Claude 3 Opus",
        "provider": "Anthropic"
      }
    ],
    "openaiApiKey": ""
  },
  "property_types": [
    {
      "defaultValue": "{{title}}",
      "name": "title",
      "type": "text"
    },
    {
      "defaultValue": "{{url}}",
      "name": "source",
      "type": "text"
    },
    {
      "defaultValue": "{{author|split:\", \"|wikilink|join}}",
      "name": "author",
      "type": "multitext"
    },
    {
      "defaultValue": "{{published}}",
      "name": "published",
      "type": "date"
    },
    {
      "defaultValue": "{{date}}",
      "name": "created",
      "type": "date"
    },
    {
      "defaultValue": "{{description}}",
      "name": "description",
      "type": "text"
    },
    {
      "defaultValue": "clippings",
      "name": "tags",
      "type": "multitext"
    }
  ],
  "template_1730565378021qs4gz44zh": [
    "ᯡࡅ䁬⁼ၦǸڀƠ嘡壴䈡慠♘ɘڐˠ᳠៙珈Ƃ:ࠡ氤ᠫ〴挨BḠ昼żŒ|Ⱡĸ硐瀦猠ྀԏ怸懇䎴彶㚋ء旘砣ઊ灟永੸ᒩḡ㼏㈠ᰭ᫠̨ⓡ廾ざ╉ᙤ梀୳㈸ኌ᪖᥸⏖幑ᕉ疴摄砠ẉဿں寧䇌爂䝠Ǖ₰繤⩆ᬯࡧ͵ᇡ撰㰠歘᭔㋿䴊牑͈㡄抜瓇஻坝泤檥䋗僐㤘⊊㋕Į⹨⡣⦮稙⒊ㄭ㛔皞㣒Ґ㱩噗恻碄⻣偙怠㮧ూ䡘䋗䡲榬燌โ䠸䵌䌐ⰼ怲ከ栠ὲᯬ३倠ݥ䀠ࣩ屨ᘤೠ悻ࡕ戠⭕ᱍ窌ⴠ㷏妕䩪Ȣ㮰岍ᯭ㧝幑๬રాਪ揂潧ችᖡ㌙⎻禒浝叄〈ដටᇡᐹḳ㫡㪝რ哬猬⦁8ṏᶉ枍峝㠾⁠n⇖䩡⊶寢׊瑁㎾፦ᷪ瀢ᵁ⏾಍䋷᩾滈ଊ䤞用ム㐨᰼⢸㢱Ვ燳ˁ㡲徐Ú嘴䇃ň䨵❷唻眰  "
  ],
  "template_list": [
    "1730565378021qs4gz44zh"
  ],
  "vaults": []
}

Additional information

1 Like

Obsidian Web Clipper is open source. You can help us improve it by submitting bugs and fixes on GitHub:

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.