Code Monkey home page Code Monkey logo

Comments (5)

jiegec avatar jiegec commented on May 24, 2024

@li-xinyang Any thoughs?

from spacemacs-rocks.

 avatar commented on May 24, 2024

Thanks for the reminder. I just noticed there are multiple instances of ='= literal inside the output HTML.

I am not quite sure why Org-mode set this as the default setting even after reading the resource you provided. Is there any particular purpose behind this kind of behavior?


Applying Markup to Strings in org-mode
07 Jul 2015, by Artur Malabarba.
Normally, org-mode ignores your attempts to markup text that starts with " or '. That’s probably a safe measure because "~/" is a very common string to write but ~ is one of Org’s markup elements.

I just found out why this is the default setting, but it still does not make sense for me to make ' or " a special char between two = and we can always escape a char using \.

I will update the build script and include the suggested solution.

(setq org-emphasis-regexp-components
      '("     ('\"{“”"
        "-   .,!?;''“”\")}/\\“”"
        "    \r\n,"
        "."
        1))

The issue will be closed once the problem is solved, see #67.

Adding the code snippet above to the bottom of convert_to_highlight_js.el seems does not solve the issue. I think I need some helps help. 😄

@jiegec @zilongshanren

from spacemacs-rocks.

jiegec avatar jiegec commented on May 24, 2024

Note:

;; This HAS to come before (require 'org)

BTW, the word 'help' is uncountable.

from spacemacs-rocks.

 avatar commented on May 24, 2024

It is still not working after moving the code above (require 'org).

https://github.com/emacs-china/Spacemacs-rocks/blob/master/convert_to_highlight_js.el

from spacemacs-rocks.

jiegec avatar jiegec commented on May 24, 2024

Fixed.

from spacemacs-rocks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.