Skip to content

Adds (back?) auto Beamer detection#203

Open
Aerijo wants to merge 2 commits intoarea:masterfrom
Aerijo:beamer
Open

Adds (back?) auto Beamer detection#203
Aerijo wants to merge 2 commits intoarea:masterfrom
Aerijo:beamer

Conversation

@Aerijo
Copy link
Copy Markdown
Collaborator

@Aerijo Aerijo commented Nov 27, 2018

Description of the Change

Uses the contentRegex property contingent on atom/first-mate#109 and atom/atom#18499 to look for \documentclass{beamer} over multiple lines, and apply a penalty if it fails.

Alternate Designs

The current score method for firstLineMatch does not apply a penalty for failures, and Beamer was sometimes getting an edge over LaTeX when it shouldn't. This new property does penalize failure, so works well.

Benefits

Beamer will be auto applied

Possible Drawbacks

NA. It would take some weird source to trick it into matching wrongly.

Applicable Issues

#189

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.

1 participant